ZingChart: How do I abbreviate or change how the series names appear in the legend?
There are several ways to approach this, one way is to specify separate series text and legend item text using the text
and legendText
attributes, respectively, in the individual series objects. See the below chart.
Example: https://demos.zingchart.com/view/RP9NJ9J5
Another way is to set the maximum number of characters you want displayed by adding a maxChars
attribute to the item
object in your legend. You can also add legend tooltips with the tooltip
object to display the full series name when users hover over the legend items. See the below chart.
Example: https://demos.zingchart.com/view/FZMXSQFO