Package com.strategyquant.tradinglib
Class AbstractChart
java.lang.Object
com.strategyquant.tradinglib.AbstractChart
- Direct Known Subclasses:
com.strategyquant.tradinglib.charts.AbstractXYChart
,PieChart
,TimeSeriesScatterChart
The Class AbstractChart.
-
Field Summary
Modifier and TypeFieldDescriptionboolean
The category axis.boolean
The show legend.The title.The type.boolean
The x axis ticks duration in MS.boolean
The y axis ticks memory. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.json.JSONObject
Gets the options.abstract org.json.JSONObject
toJSON()
To JSON.
-
Field Details
-
type
The type. -
title
The title. -
showLegend
public boolean showLegendThe show legend. -
xAxisTicksDurationInMS
public boolean xAxisTicksDurationInMSThe x axis ticks duration in MS. -
yAxisTicksMemory
public boolean yAxisTicksMemoryThe y axis ticks memory. -
categoryAxis
public boolean categoryAxisThe category axis.
-
-
Constructor Details
-
AbstractChart
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
-