ZingChart: How do I add a legend to my chart?

To add a legend, create a legend object.

{
    type: 'bar',
    legend: {
        ...
    },
    ...
}

A chart legend will appear like so:

Example: https://demos.zingchart.com/view/329OVU6L

You can customize the text, markers, layout, positioning, styling, and much more. ZingChart also supports interactive legend features such as legend toggling, dragging, minimization, pagination, scrolling, highlighting, sharing, and animation. 

Example: https://demos.zingchart.com/view/O2BWTGEJ

Documentation

Legend Tutorial
Legend JSON Syntax

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us