Class AbstractChart

java.lang.Object
com.strategyquant.tradinglib.AbstractChart
Direct Known Subclasses:
com.strategyquant.tradinglib.charts.AbstractXYChart, PieChart, TimeSeriesScatterChart

public abstract class AbstractChart extends Object
The Class AbstractChart.
  • Field Details

    • type

      public String type
      The type.
    • title

      public String title
      The title.
    • showLegend

      public boolean showLegend
      The show legend.
    • xAxisTicksDurationInMS

      public boolean xAxisTicksDurationInMS
      The x axis ticks duration in MS.
    • yAxisTicksMemory

      public boolean yAxisTicksMemory
      The y axis ticks memory.
    • categoryAxis

      public boolean categoryAxis
      The category axis.
  • Constructor Details

    • AbstractChart

      public AbstractChart(String type)
      Instantiates a new abstract chart.
      Parameters:
      type - the type
  • Method Details

    • toJSON

      public abstract org.json.JSONObject toJSON()
      To JSON.
      Returns:
      the JSON object
    • getOptions

      public org.json.JSONObject getOptions()
      Gets the options.
      Returns:
      the options