LegendMarkers

The configuration options of the legend markers.

height? number

The height (in pixels) of the markers. Defaults to 3.

type? MarkerType

The shape of the legend item markers.

The supported values are:

  • (Default) "circle"—The marker shape is a circle.
  • "square"—The marker shape is a square.
  • "triangle"—The marker shape is a triangle.
  • "cross"—The marker shape is a cross.

visible? boolean

If set to true, the Chart displays the markers.
By default, the legend item markers are displayed.

visual? (e: MarkersVisualArgs) => Element

A function for creating a custom visual for the markers.

The available argument fields are:

  • rect—The geometry Rect that defines where the visual will be rendered.
  • options—The marker options.
  • createVisual—A function for getting the default visual.
  • category—The category of the marker point.
  • dataItem—The dataItem of the marker point.
  • value—The value of the marker point.
  • sender—The Chart instance.
  • series—The series of the marker point.

width? number

The width (in pixels) of the markers. Defaults to 15.