A legend is a part of the chart that lists and explains its elements, making it easier to read and understand. In AnyChart, the legend can be used with Basic Charts, Stock Charts, Maps, and every other chart type.

The legend and its items are fully customizable: you can either modify any setting of the default legend or create a custom legend from scratch.


The first article explains the basic settings affecting the whole legend - e.g., size and position:

The following sections explain how to adjust various parts of the legend:

Legend items are also fully customizable - all at once or individually:

An alternative way to apply settings to the legend is using themes:

The options listed below allow creating advanced data visualizations:


Here is the list of classes used to work with the legend: