Class BarChart

java.lang.Object
com.strategyquant.tradinglib.AbstractChart
com.strategyquant.tradinglib.charts.AbstractXYChart
com.strategyquant.tradinglib.BarChart

public class BarChart extends com.strategyquant.tradinglib.charts.AbstractXYChart
The Class BarChart.
  • Constructor Details

    • BarChart

      public BarChart()
      Instantiates a new bar chart.
  • Method Details

    • addValue

      public void addValue(String name, Comparable x, Number y)
      Adds the value.
      Parameters:
      name - the name
      x - the x
      y - the y
    • addValue

      public void addValue(String name, Comparable x, Number y, String color)
    • setCategoryColor

      public void setCategoryColor(String name, String color)
      Sets the category color.
      Parameters:
      name - the name
      color - the color
    • toJSON

      public org.json.JSONObject toJSON()
      To JSON.
      Specified by:
      toJSON in class AbstractChart
      Returns:
      the JSON object