Optional buttonFillStyle for the entry button.
Optional buttonRotation of the entry button in degrees.
Optional buttonEntry button shape.
Optional buttonEntry button size.
Optional buttonLineStyle for the entry button.
Optional eventsEvent callbacks for the entry. Can be used to add entry specific event handlers:
// Example syntax, click handler for all legend entries
const chart = lc.ChartXY({
legend: {
entries: {
events: {
click: (event, info) => {}
}
}
}
})
// Example syntax, click handler for a specific entry
chart.legend.setEntryOptions(series, {
events: {
click: (event, info) => {}
}
})
Most frequently used event keys:
'click''contextmenu''pointerenter''pointermove''pointerleave'Optional highlightHighlighting on hover enabled?
Optional lutLUT element to be displayed on the legend.
By default, LUT is automatically displayed if the associated entry is styled using a LUT.
This behavior can be prevented by setting lut to null.
// Example syntax, prevent LUT from being displayed in legend
const chart = lc.ChartXY({
legend: {
entries: {
lut: null
}
}
})
Optional lutWhether distances between LUT step values are displayed, or if the displayed LUT steps should be split equal distances apart.
Optional lutLength of the LUT element as pixels.
Optional lutOptional lutThickness of the LUT element as pixels.
Optional matchWhether buttonFillStyle should be matched exactly with the style of the represented component.
Defaults to false, which results in button fill style being displayed as a linear gradient calculated around the represented component color.
Optional showWhether to show the entry on the legend.
Optional textText to be displayed on the legend entry.
Optional textFillStyle for the entry text.
Optional textFontSettings for the entry text.
Options for individual legend entry.