LegendItemComponent

The configuration of the Chart legend item.

<kendo-chart>
  <kendo-chart-legend>
     <kendo-chart-legend-item cursor="crosshair"></kendo-chart-legend-item>
  </kendo-chart-legend>
</kendo-chart>

Selector

kendo-chart-legend-item

Inputs

cursor string

The cursor style of the legend item.

visual (e: LegendItemVisualArgs) => Element

A function for creating a custom visual for the legend items.

The available argument fields are:

  • options—The item options.
  • createVisual—A function for getting the default visual.
  • series—The item series.
  • pointIndex—The index of the point in the series. Available for the Pie, Donut, and Funnel series.

Methods

notifyChanges

Updates the component fields with the specified values and refreshes the Chart.

Use this method when the configuration values cannot be set through the template.

item.notifyChanges({ visible: true });

Parameters

changes any

An object containing the updated input fields.