ChartItem
Item displaying a chart.
Chart data is taken from the configured field, which is expected to be either an array of values for a sparkline type of chart, or an array of objects with { label, value } format.
Use CSS to size the chart item according to your needs.
Note that this item requires using thin bundles or thin npm packages in your application, and importing the
chart bundle / package. It does not work with normal packages, module or umd bundles. No results
Configs
Configs are options you supply in a configuration object when creating an instance of this class-
Additional configuration options for the chart, see docs for the Chart module
-
Type of chart to display, supports 'line', 'bar', and 'pie' charts
-
Convenience shortcut for supplying a height for the chart, but chart can be sized using CSS.
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of ChartItem class, or subclass thereof.
-
Identifies an object as an instance of ChartItem class, or subclass thereof.