public static class Metrics.SimplePie extends Metrics.CustomChart
Constructor and Description |
---|
SimplePie(java.lang.String chartId,
java.util.concurrent.Callable<java.lang.String> callable)
Class constructor.
|
Modifier and Type | Method and Description |
---|---|
protected org.json.simple.JSONObject |
getChartData() |
public SimplePie(java.lang.String chartId, java.util.concurrent.Callable<java.lang.String> callable)
chartId
- The id of the chart.callable
- The callable which is used to request the chart data.protected org.json.simple.JSONObject getChartData() throws java.lang.Exception
getChartData
in class Metrics.CustomChart
java.lang.Exception