Skip to content

Conversation

@bernardobelchior
Copy link
Member

@mui-bot
Copy link

mui-bot commented Dec 15, 2025

Deploy preview: https://deploy-preview-20660--material-ui-x.netlify.app/

Bundle size report

Bundle size will be reported once CircleCI build #705625 finishes.

Generated by 🚫 dangerJS against b252547

Comment on lines +116 to +124
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();
Copy link
Member

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

Copy link
Member

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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants