Skip to content
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

Improved financial sample #6998

Merged
merged 3 commits into from
Jan 26, 2020
Merged

Conversation

benmccann
Copy link
Contributor

@benmccann benmccann commented Jan 22, 2020

I'd be fine closing #6791 since it seems controversial. Instead perhaps we should add to the performance docs that source === 'data' || (source === 'auto' && options.distribution === 'series') may be slow, so you may want to generate your own ticks with a faster method. This improves the speed of the financial sample in that vein. Before it just did it's own logic to determine the major ticks, but now it generates the ticks from scratch in a faster manner

We could also consider reverting the changes to generate from #6509 so that ticks are generated further apart or using @kurkle's new branch which does that as well. I'd like to keep the scriptable tick options and sampleSize option though

I moved the sample from "Scales" to "Advanced" since it was already pretty advanced and this makes it even more so. I'd have probably put it there originally, but that wasn't a section that existed at the time

This also fixes the bug @kurkle found today: (the picture below shows the bug)

image (1)

@benmccann benmccann force-pushed the advanced-financial branch 2 times, most recently from ee97a5b to 0c685b1 Compare January 22, 2020 02:57
samples/advanced/financial.html Outdated Show resolved Hide resolved
samples/advanced/financial.html Outdated Show resolved Hide resolved
@etimberg etimberg merged commit 47c7a42 into chartjs:master Jan 26, 2020
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.

3 participants