Skip to content

Cannot read property 'series' of undefined  #490

Open
@ashritha-singu

Description

@ashritha-singu

I keep getting 'series' undefined error while hovering over the chart. It is exactly happening when I try to update state values in the component.

Unable to reproduce in JSBin

plotOptions: {
      column: {
        point: {
          events: {
            mouseOver: eventsMouseOverHandler,
          },
        },
        states: {
          hover: {
            color: highchartsThemeColors.columnHoverColor,
          },
        },
      },
    },
const eventsMouseOverHandler: Highcharts.PointMouseOverCallbackFunction = React.useCallback((event: Event) => {
    const { x: pointX = null, y: pointY = null } = (event.target as unknown as HighchartsPoint) || {};
        setX(pointX);
        setY(pointY);
   }, [setX, setY]);

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions