Function useHighlightedIndex

  • Hook to get the index of the highlighted data point. May want to change how this works in terms of context etc, current implementation is simple will not behave well if used multiple times by the same chart, etc.

    Returns number