Class Metrics.MultiLineChart

java.lang.Object
ch.njol.skript.Metrics.CustomChart
ch.njol.skript.Metrics.MultiLineChart
Enclosing class:
Metrics

public abstract static class Metrics.MultiLineChart extends Metrics.CustomChart
Represents a custom multi line chart.
  • Constructor Details

    • MultiLineChart

      public MultiLineChart(String chartId)
      Class constructor.
      Parameters:
      chartId - The id of the chart.
  • Method Details

    • getValues

      public abstract HashMap<String,​Integer> getValues(HashMap<String,​Integer> valueMap)
      Gets the values of the chart.
      Parameters:
      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!
      Returns:
      The values of the chart.
    • getChartData

      protected org.json.simple.JSONObject getChartData()
      Specified by:
      getChartData in class Metrics.CustomChart