Package com.strategyquant.tradinglib
Class TimeSeriesLineChart
java.lang.Object
com.strategyquant.tradinglib.AbstractChart
com.strategyquant.tradinglib.charts.AbstractXYChart
com.strategyquant.tradinglib.TimeSeriesLineChart
public class TimeSeriesLineChart
extends com.strategyquant.tradinglib.charts.AbstractXYChart
The Class TimeSeriesLineChart.
-
Field Summary
Modifier and TypeFieldDescriptionstatic org.slf4j.Logger
The Constant Log.static int
The Constant OptimPointsCount.static int
The Constant PointsCount.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
Modifier and TypeMethodDescriptionvoid
addSeries(TimeSeries series)
Adds the series.getSeries(int index)
Gets the series.Gets the series collection.org.json.JSONObject
toJSON()
To JSON.Methods inherited from class com.strategyquant.tradinglib.charts.AbstractXYChart
getOptions, invertIfNegative
-
Field Details
-
Log
public static final org.slf4j.Logger LogThe Constant Log. -
PointsCount
public static final int PointsCountThe Constant PointsCount.- See Also:
- Constant Field Values
-
OptimPointsCount
public static final int OptimPointsCountThe Constant OptimPointsCount.- See Also:
- Constant Field Values
-
-
Constructor Details
-
TimeSeriesLineChart
public TimeSeriesLineChart()Instantiates a new time series line chart.
-
-
Method Details
-
addSeries
Adds the series.- Parameters:
series
- the series
-
getSeries
Gets the series.- Parameters:
index
- the index- Returns:
- the series
-
getSeriesCollection
Gets the series collection.- Returns:
- the series collection
-
toJSON
public org.json.JSONObject toJSON()To JSON.- Specified by:
toJSON
in classAbstractChart
- Returns:
- the JSON object
-