Package com.strategyquant.tradinglib
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
-
Method Summary
Methods inherited from class com.strategyquant.tradinglib.charts.AbstractXYChart
getOptions, invertIfNegative
-
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 classAbstractChart
- Returns:
- the JSON object
-