Class GooglePlotInt

  • Direct Known Subclasses:
    GoogleHistogram

    public class GooglePlotInt
    extends java.lang.Object
    A simple wrapper to goolge charts API (from charts4j) Plots integer data
    Author:
    pcingola
    • Constructor Detail

      • GooglePlotInt

        public GooglePlotInt​(int[] x,
                             int[] y,
                             java.lang.String title,
                             java.lang.String xAxisLabel,
                             java.lang.String yAxisLabel)
    • Method Detail

      • getBarSpace

        public int getBarSpace()
      • getBarWidth

        public int getBarWidth()
      • getNumberLabelsXaxis

        public int getNumberLabelsXaxis()
      • getPlotMaxData

        public int getPlotMaxData()
      • getPlotSizeX

        public int getPlotSizeX()
      • getPlotSizeY

        public int getPlotSizeY()
      • getTitle

        public java.lang.String getTitle()
      • getxAxisLabel

        public java.lang.String getxAxisLabel()
      • setBarSpace

        public void setBarSpace​(int barSpace)
      • setBarWidth

        public void setBarWidth​(int barWidth)
      • setNumberLabelsXaxis

        public void setNumberLabelsXaxis​(int numberLabelsXaxis)
      • setPlotMaxData

        public void setPlotMaxData​(int plotMaxData)
      • setPlotSizeX

        public void setPlotSizeX​(int plotSizeX)
      • setPlotSizeY

        public void setPlotSizeY​(int plotSizeY)
      • setTitle

        public void setTitle​(java.lang.String title)
      • setxAxisLabel

        public void setxAxisLabel​(java.lang.String xAxisLabel)
      • subsample

        public void subsample​(int numberOfPoints,
                              boolean averageY)
        Re sample data so it has at most 'numberOfPoints'
      • toURLString

        public java.lang.String toURLString()
        Create a histogram plot using Google charts
        Returns: