Series label in JavaScript Chart control
18 Nov 20181 minute to read
The series label displays the name of each series inline, positioned near the end of the series path or the last visible data point. This helps identify each series without referring to the legend.
Overview
Enable series labels using the labelSettings property within the series configuration. Set the visible property to true to display the label.
Note: To use the series label feature, inject the
SeriesLabelmodule into theservices.
Customization
Customize the appearance of series labels using the following properties:
-
text– Custom text for the label. Defaults to the series name. -
font– Font customization options including color, size, family, and weight. -
background– Background color of the label. -
border– Border width and color. -
opacity– Label transparency (default: 1). -
showOverlapText– When false, overlapping labels are hidden.
Note: To use the series label feature, inject the SeriesLabel module into the services.