public abstract static class Metrics.AdvancedPie extends Metrics.CustomChart
chartId
Constructor and Description |
---|
AdvancedPie(String chartId)
Class constructor.
|
Modifier and Type | Method and Description |
---|---|
protected org.json.simple.JSONObject |
getChartData() |
abstract HashMap<String,Integer> |
getValues(HashMap<String,Integer> valueMap)
Gets the values of the pie.
|
getRequestJsonObject
public AdvancedPie(String chartId)
chartId
- The id of the chart.public abstract HashMap<String,Integer> getValues(HashMap<String,Integer> valueMap)
valueMap
- Just an empty map. The only reason it exists is to make your life easier.
You don't have to create a map yourself!protected org.json.simple.JSONObject getChartData()
getChartData
in class Metrics.CustomChart
Copyright © 2018. All rights reserved.