-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
WIP: new renderers poc #20660
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
base: master
Are you sure you want to change the base?
WIP: new renderers poc #20660
Conversation
bernardobelchior
commented
Dec 15, 2025
- I have followed (at least) the PR section of the contributing guide.
|
Deploy preview: https://deploy-preview-20660--material-ui-x.netlify.app/ Bundle size reportBundle size will be reported once CircleCI build #705625 finishes. |
| ctx.beginPath(); | ||
| ctx.arc( | ||
| (dataPoint.x - drawingArea.left) / scale, | ||
| (dataPoint.y - drawingArea.top) / scale, | ||
| ((isItemFaded ? 1.2 : 1) * series.markerSize) / scale, | ||
| 0, | ||
| 2 * Math.PI, | ||
| ); | ||
| ctx.fill(); |
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.
Move ctx.beginPath to the top, outside the loop
Move ctx.fill to the bottom, outside the loop
should improve performance
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.
In general you only have to call fill() for things with different styles, so plot all series 1, then fill, plot all series 2, then fill