@amad3v/solid-echarts - v1.0.2
    Preparing search index...

    Type Alias EventParams

    Parameters passed to ECharts event handlers.

    Not all fields are present on every event - availability depends on componentType and the chart type. Mouse events on series elements populate most fields. Events on non-series components (legend, dataZoom) may only populate componentType and component-specific fields.

    Received as the first argument of every handler in onEvents, and as the first argument of handlers passed to dispatch via the onEvents prop.

    type EventParams = {
        color: string;
        componentType: string;
        data: object;
        dataIndex: number;
        dataType: string;
        name: string;
        seriesIndex: number;
        seriesName: string;
        seriesType: string;
        value: number | unknown[];
    }
    Index

    Properties

    color: string

    Fill color of the shape. Only meaningful when componentType is "series".

    componentType: string

    The type of component that triggered the event - "series", "markLine", "markPoint", "timeLine", etc.

    data: object

    The raw data item as defined in option.series[n].data.

    dataIndex: number

    Index of the data item in the data array.

    dataType: string

    Data type for charts with multiple data types (e.g. "sankey", "graph"). "node" or "edge" for graph charts. Meaningless for single-type charts.

    name: string

    Name of the data item (category label).

    seriesIndex: number

    Index of the series in option.series. Only meaningful when componentType is "series".

    seriesName: string

    Series name. Only meaningful when componentType is "series".

    seriesType: string

    Series type ("line", "bar", "pie", etc.). Only meaningful when componentType is "series".

    value: number | unknown[]

    The data value at the event position.