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:

You can customize the text, markers, layout, positioning, styling, and much more. Refer to the Legend Tutorial for step-by-step instructions. ZingChart also supports interactive legend features such as legend toggling, dragging, minimization, pagination, scrolling, highlighting, sharing, and animation. Interact with the below chart by clicking on the legend items.

Have more questions? Submit a request


  • 0
    Nick Ardecky

    Wow that's so easy!


Please sign in to leave a comment.