This sample shows a category axis in a chart with details about internet users across different countries.
You can use the category axis to represent string values instead of numbers in the chart. To use the category axis, set ValueType
in axis to Category.
Injecting Module
Chart component features are segregated into individual feature-wise modules. To use Category axis, we need to inject Category
module into services
.
More information on the Category axis can be found in this documentation section.