Variable LegendEntryClickBehaviorsConst

LegendEntryClickBehaviors: {
    doNothing: (() => void);
    focusClicked: ((event: Event, info: {
        allEntries: LegendEntry[];
        entry: LegendEntry;
    }) => void);
    toggleIndividualVisibility: ((event: Event, info: {
        allEntries: LegendEntry[];
        entry: LegendEntry;
    }) => void);
} = ...

Collection of callbacks for legend entry click events.

Type declaration

  • doNothing: (() => void)
      • (): void
      • Do nothing on click.

         // Example syntax
        const chart = lc.ChartXY({
        legend: {
        entries: {
        events: {
        click: LegendEntryClickBehaviors.doNothing
        }
        }
        }
        })

        Returns void

  • focusClicked: ((event: Event, info: {
        allEntries: LegendEntry[];
        entry: LegendEntry;
    }) => void)
      • (event: Event, info: {
            allEntries: LegendEntry[];
            entry: LegendEntry;
        }): void
      • Make the clicked entry the only visible one.

         // Example syntax
        const chart = lc.ChartXY({
        legend: {
        entries: {
        events: {
        click: LegendEntryClickBehaviors.focusClicked
        }
        }
        }
        })

        Parameters

        Returns void

  • toggleIndividualVisibility: ((event: Event, info: {
        allEntries: LegendEntry[];
        entry: LegendEntry;
    }) => void)
      • (event: Event, info: {
            allEntries: LegendEntry[];
            entry: LegendEntry;
        }): void
      • Toggle visibility of the clicked entry (default).

         // Example syntax
        const chart = lc.ChartXY({
        legend: {
        entries: {
        events: {
        click: LegendEntryClickBehaviors.toggleIndividualVisibility
        }
        }
        }
        })

        Parameters

        Returns void