Open this page in the API Guide
Legend.addItem Method
Adds a legend item to the legend.
Parameters
- item
-
Type: LegendItem
The legend item that will be added to the legend.
Remarks
Call addCustomItems instead for legend items not populated automatically by a visualization.