Class CategoryScale

java.lang.Object
software.xdev.chartjs.model.options.scales.Scale<CategoryTicks,CategoryScale>
software.xdev.chartjs.model.options.scales.CategoryScale

public class CategoryScale extends Scale<CategoryTicks,CategoryScale>
The category scale will be familiar to those who have used v1.0. Labels are drawn from one of the label arrays included in the chart data. If only data.labels is defined, this will be used. If data.xLabels is defined and the axis is horizontal, this will be used. Similarly, if data.yLabels is defined and the axis is vertical, this property will be used. Using both xLabels and yLabels together can create a chart that uses strings for both the X and Y axes.
  • Constructor Details

    • CategoryScale

      public CategoryScale()