Class XYLineChart

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

public class XYLineChart extends com.strategyquant.tradinglib.charts.AbstractXYChart
The Class XYLineChart.
  • Field Summary

    Fields inherited from class com.strategyquant.tradinglib.charts.AbstractXYChart

    disableEvents, displayXAxesLabels, displayYAxesLabels, fontSize, invertIfNegative, maxXTicksLimit, maxYTicksLimit, pointRadius, tooltips, xAxisRangeMax, xAxisRangeMin, xAxisTickformat, xAxisTitle, xAxisType, yAxisRangeMax, yAxisRangeMin, yAxisTitle

    Fields inherited from class com.strategyquant.tradinglib.AbstractChart

    categoryAxis, showLegend, title, type, xAxisTicksDurationInMS, yAxisTicksMemory
  • Constructor Summary

    Constructors
    Constructor
    Description
    Instantiates a new XY line chart.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addSeries​(com.strategyquant.tradinglib.charts.linechart.series.XYSeries series)
    Adds the series.
    com.strategyquant.tradinglib.charts.linechart.series.XYSeries
    getSeries​(int index)
    Gets the series.
    org.json.JSONObject
    To JSON.

    Methods inherited from class com.strategyquant.tradinglib.charts.AbstractXYChart

    getOptions, invertIfNegative

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • XYLineChart

      public XYLineChart()
      Instantiates a new XY line chart.
  • Method Details

    • addSeries

      public void addSeries(com.strategyquant.tradinglib.charts.linechart.series.XYSeries series)
      Adds the series.
      Parameters:
      series - the series
    • getSeries

      public com.strategyquant.tradinglib.charts.linechart.series.XYSeries getSeries(int index)
      Gets the series.
      Parameters:
      index - the index
      Returns:
      the series
    • toJSON

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