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

How to use highlightPoint as an option? #88

Open
yuric22 opened this issue Jun 27, 2018 · 0 comments
Open

How to use highlightPoint as an option? #88

yuric22 opened this issue Jun 27, 2018 · 0 comments

Comments

@yuric22
Copy link
Contributor

yuric22 commented Jun 27, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant