Skip to content

Conversation

@srmukher
Copy link
Contributor

No description provided.

@srmukher srmukher requested a review from a team as a code owner December 30, 2025 06:39
@srmukher
Copy link
Contributor Author

srmukher commented Dec 30, 2025

@github-actions
Copy link

github-actions bot commented Dec 30, 2025

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
react-charts
AreaChart
404.512 kB
123.769 kB
405.962 kB
124.165 kB
1.45 kB
396 B
react-charts
DeclarativeChart
724.258 kB
210.073 kB
734.669 kB
213.912 kB
10.411 kB
3.839 kB
react-charts
DonutChart
299.158 kB
89.227 kB
331.753 kB
101.524 kB
32.595 kB
12.297 kB
react-charts
GanttChart
387.634 kB
117.484 kB
389.083 kB
117.949 kB
1.449 kB
465 B
react-charts
GroupedVerticalBarChart
395.514 kB
120.079 kB
396.964 kB
120.547 kB
1.45 kB
468 B
react-charts
HeatMapChart
389.749 kB
119.192 kB
391.198 kB
119.587 kB
1.449 kB
395 B
react-charts
LineChart
415.004 kB
125.838 kB
416.454 kB
126.262 kB
1.45 kB
424 B
react-charts
ScatterChart
394.916 kB
119.97 kB
396.366 kB
120.447 kB
1.45 kB
477 B
react-charts
VerticalBarChart
429.218 kB
125.201 kB
430.668 kB
125.668 kB
1.45 kB
467 B
react-charts
VerticalStackedBarChart
401.564 kB
121.043 kB
403.014 kB
121.452 kB
1.45 kB
409 B
Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-charts
FunnelChart
290.413 kB
86.075 kB
react-charts
GaugeChart
314.067 kB
92.925 kB
react-charts
HorizontalBarChart
296.747 kB
87.108 kB
react-charts
HorizontalBarChartWithAxis
63 B
83 B
react-charts
Legends
235.853 kB
69.476 kB
react-charts
SankeyChart
199.54 kB
61.375 kB
react-charts
Sparkline
91.393 kB
28.708 kB
🤖 This report was generated against 69d283b5ef98c424135985519e698e70b2a288ea

@github-actions
Copy link

Pull request demo site: URL


const padding = context.viewportPadding;
const paddingLeft =
typeof padding?.left === 'number' && Number.isFinite(padding.left) && padding.left > 0 ? padding.left : 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

reduce repeating code

? context.plotRect
: undefined;

const clampX = clampRect && typeof clampRect.x === 'number' && Number.isFinite(clampRect.x) ? clampRect.x : 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

clampX clampY both values are very similar and repeating part of the code. See how we can reduce common code.

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.

2 participants