Basics

Adding charts to your plugin consists of two parts:
  • Adding charts to your code
  • Adding charts on the website
To add a chart on the website, login and click on the Edit-button on your plugin page:

and add your chart:

Pretty easy, isn't it?

Pies

A Simple Pie is the most basic chart type. It's a great option for config settings as it only accepts one value per server. Adding the chart to your code is fairly easy: If you need a pie with more options there's the Advanced Pie which allows you to send more than one value. You can also give the values different 'weights'. There are very few cases in which you need this type of pie, so I'm sorry for this bad example:

Drilldown Pies

A Drilldown Pie is the most fancy pie chart. It's a great choice for displaying complex data which would look like a mess, if a normal pie would be used. Creating one is sadly a little bit ugly, because of it's complexity:

Line Charts

A Single Line Chart is exactly what the name says: A line chart with only one line. An example for this type of chart is the servers or players chart every plugin has. Implementing a Single Line Chart is as simple as implementing a Simple Pie chart: Now it's your turn. What do you think is a Multi Line Chart? Right! A line chart with multiple lines: (Note: Multi Line Charts are still in development)

Bar charts

A Simple Bar Chart represents a bar chart, where each category only has 1 bar. The first value of the map is the category name and the second value of the map is the value of the bar (most of the time you want it to be 1).

An Advanced Bar Chart represents a bar chart, where each category can have multiple bars (defined at the creation). The first value of the map is the category name and the second value of the map are the values for the bars. The example you can see above is an advanced pie chart.