Package org.bstats.charts
Class SimpleBarChart
- java.lang.Object
-
- org.bstats.charts.CustomChart
-
- org.bstats.charts.SimpleBarChart
-
public class SimpleBarChart extends CustomChart
-
-
Constructor Summary
Constructors Constructor Description SimpleBarChart(java.lang.String chartId, java.util.concurrent.Callable<java.util.Map<java.lang.String,java.lang.Integer>> callable)Class constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JsonObjectBuilder.JsonObjectgetChartData()-
Methods inherited from class org.bstats.charts.CustomChart
getRequestJsonObject
-
-
-
-
Constructor Detail
-
SimpleBarChart
public SimpleBarChart(java.lang.String chartId, java.util.concurrent.Callable<java.util.Map<java.lang.String,java.lang.Integer>> callable)Class constructor.- Parameters:
chartId- The id of the chart.callable- The callable which is used to request the chart data.
-
-
Method Detail
-
getChartData
protected JsonObjectBuilder.JsonObject getChartData() throws java.lang.Exception
- Specified by:
getChartDatain classCustomChart- Throws:
java.lang.Exception
-
-