-
Notifications
You must be signed in to change notification settings - Fork 189
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
fix(zoombar): cache zoombar data and zoombar default domain #855
fix(zoombar): cache zoombar data and zoombar default domain #855
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok mostly, just a couple of concerns:
- What are the demo data additions? Do we need those or are you testing using those?
- How much have you tested this? Is there a chance that these changes will break some other demos or functionalities?
The demo data additions are just for testing |
I tested all of the existing demos and they’re looking fine for zoombar |
@scottdickerson How can we update zoom bar data if it's necessary ? |
@hlyang397 thanks I added a new method to model called setZoomBarData to address that, please take another look. @theiliad I think this fix is ready to merge when you have a chance to review it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: Eliad Moosavi <theiliad@users.noreply.github.com>
sanitization logic will be available via #856 |
ok I've merged your stuff in now @theiliad and I'm ready for a merge |
I don't think I can make those suggested changes @theiliad but let me know if I'm incorrect, I did remove the DEV stories as part of my latest push |
…on-charts into fix-zoombar-scale
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you get a blank in the Angular
storybook too in addition to @sophiiae comment on the react
@scottdickerson |
thanks @natashadecoste @sophiiae I've fixed, I'm just going to hide this story from the downstream examples for now (only show in Core) since I don't have access to the storyUtils to generate the data, it's ready for re-review |
…oombar-scale * fix(zoombar): cache zoombar data and zoombar default domain * fix(zoombar): cache custom zoom bar data in the model * fix(zoombar): cache custom zoom bar data in the model * Update packages/core/stories/utils.ts Co-authored-by: Eliad Moosavi <theiliad@users.noreply.github.com> * fix(zoombar): still need to sanitize * test(dev): remove dev stories * refactor(model-zoom): move methods zoom bar specific to model-zoom * refactor(model-zoom): rename to model-cartesian-charts * fix(lint): fix lint issue * fix(stories): remove from non core stories * fix(stories): remove from non core stories Co-authored-by: Eliad Moosavi <theiliad@users.noreply.github.com>
Updates
new demo data, new high-scale testcase with 2000 data points in zoom bar
zoom-bar.ts, pass the calculated zoom bar data to the domain calculator on render
zoom.ts, add the custom zoomBarData to the model if it exists and pull it from there, remove the sanitization logic as that will be done by @theiliad and that was causing the slowdown at render time
Demo screenshot or recording
Review checklist (for reviewers only)