Skip to content

Comments

fix: calc visible points on update #10467#10523

Merged
etimberg merged 1 commit intochartjs:masterfrom
TrigenSoftware:fix-10467
Jul 28, 2022
Merged

fix: calc visible points on update #10467#10523
etimberg merged 1 commit intochartjs:masterfrom
TrigenSoftware:fix-10467

Conversation

@dangreen
Copy link
Collaborator

Fix #10467

etimberg
etimberg previously approved these changes Jul 27, 2022
@etimberg etimberg added this to the Version 3.9.0 milestone Jul 27, 2022
@etimberg etimberg requested review from LeeLenaleee and kurkle July 27, 2022 22:22
LeeLenaleee
LeeLenaleee previously approved these changes Jul 27, 2022
Copy link
Member

@kurkle kurkle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What breaks if it always uses <=?

My thought was to make sure the .hi is always the last (and .lo first) in case there are multiple equal values.

That said, I do not know if it would be easy to do or if it would result in slower code.

Would you be willing to ty it out?

@dangreen dangreen dismissed stale reviews from LeeLenaleee and etimberg via 69a82fa July 28, 2022 08:46
@dangreen
Copy link
Collaborator Author

dangreen commented Jul 28, 2022

@kurkle

What breaks if it always uses <=?

Tests are failing

Details
Plugin.decimation
    lttb
      ✗ should draw all element only in range
	Error: Expected 3 to be 2.
	    at <Jasmine>
	    at UserContext.<anonymous> (test/specs/plugin.decimation.tests.js:176:48)
	    at <Jasmine>

	Error: Expected 4 to be 3.
	    at <Jasmine>
	    at UserContext.<anonymous> (test/specs/plugin.decimation.tests.js:177:48)
	    at <Jasmine>

	Error: Expected 5 to be 4.
	    at <Jasmine>
	    at UserContext.<anonymous> (test/specs/plugin.decimation.tests.js:178:48)
	    at <Jasmine>

	Error: Expected 6 to be 5.
	    at <Jasmine>
	    at UserContext.<anonymous> (test/specs/plugin.decimation.tests.js:179:48)
	    at <Jasmine>

	Error: Expected 7 to be 6.
	    at <Jasmine>
	    at UserContext.<anonymous> (test/specs/plugin.decimation.tests.js:180:48)
	    at <Jasmine>

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chart.js 3.7.1: Error thrown after updating data and subsequent user interaction

4 participants