New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Points className doesn't get updated when using Series.setData() with original number of points #6254

Closed
stpoa opened this Issue Jan 17, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@stpoa

stpoa commented Jan 17, 2017

Expected behaviour

Update chart with new class for points with changed class.

Actual behaviour

Series.setData doesn't update className for points, when points length is equal to original poinst length.

Live demo with steps to reproduce

https://jsfiddle.net/2qoL7xv4/

  1. Run demo
  2. Notice, that class for first point doesn't update

Workaround:

chart.series[0].setData(data, undefined, undefined, false)
@TorsteinHonsi

This comment has been minimized.

Show comment
Hide comment
@TorsteinHonsi

TorsteinHonsi Jan 18, 2017

Collaborator

Broken down to Point.update: http://jsfiddle.net/highcharts/2qoL7xv4/1/

Collaborator

TorsteinHonsi commented Jan 18, 2017

Broken down to Point.update: http://jsfiddle.net/highcharts/2qoL7xv4/1/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment