SomethingOn
SomethingOn

Reputation: 10891

Why are the chartjs tooltip labels always showing the first x-axis label?

The chartjs default tooltips seem to be displaying data incorrectly. No matter which datapoint I hover over, the tooltip label always shows "Week of Jan 24th".

I expected it to show "Week of Jan 31st" when hover over the "Week of Jan 31st" data points and "Last Week" when hovering over the "Last Week" data points. Am I wrong on this?

enter image description here enter image description here

Upvotes: 1

Views: 1322

Answers (1)

Carlene
Carlene

Reputation: 357

<LineChart data={this.state.yourData} options={this.state.yourOptions} redraw="true"/>

redraw="true"

Upvotes: 2

Related Questions