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.