Package com.strategyquant.tradinglib
Class PieChart
java.lang.Object
com.strategyquant.tradinglib.AbstractChart
com.strategyquant.tradinglib.PieChart
The Class PieChart.
-
Field Summary
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.AbstractChart
getOptions
-
Constructor Details
-
PieChart
public PieChart()Instantiates a new pie chart.
-
-
Method Details
-
addValue
Adds the value.- Parameters:
label
- the labelvalue
- the valuecolor
- the color
-
getSectionByLabel
Gets the section by label.- Parameters:
label
- the label- Returns:
- the section by label
-
toJSON
public org.json.JSONObject toJSON()To JSON.- Specified by:
toJSON
in classAbstractChart
- Returns:
- the JSON object
-