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?