Skip to content
This repository was archived by the owner on Jun 6, 2024. It is now read-only.
This repository was archived by the owner on Jun 6, 2024. It is now read-only.

How to use highlightPoint as an option? #88

@yuric01

Description

@yuric01

I'm trying to figure out how to use NVD3's function highlightPoint as an option passed to a react-nvd3 component. The NVD3 documentation says nothing, nor react-nvd3's README.

I looked into NVD3 source code and saw that this is simple function, but I couldn't figure it out how react-nvd3's option turn into this function call.

I tried with no success to pass an array, a object and a array of arrays, like:

<NVD3Chart id="line-chart" type="lineChart" datum={this.state.data} x="variable1" y="variable2" options={{ highlightPoint: {seriesIndex: 0, pointIndex: 0, isHoverOver: true} }} />

Or with:

options={{highlightPoint: [0, 0, true]}}

Or with:

options={{highlightPoint: [[0, 0, true]]}}

Does anyone know what I'm missing?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions