Redefined chart library built with React and D3
Both @HHongSeungWoo and @bernardobelchior landed improvements to performance!
getStringSize
when calculating visible ticks (#2589) by @bernardobelchior in https://github.com/recharts/recharts/pull/3953
We have made progress on our preparation of the 3.0 version by migrating from jest to vite. For details and motivation, please read the issue linked to the PR. Special thanks to @branberry for pushing on vitest! Thank you.
dataKey
prop on CategoricalChartProps
by @charpeni in https://github.com/recharts/recharts/pull/3870
Full Changelog: https://github.com/recharts/recharts/compare/v2.9.0...v2.10
Brush
: Fix an issue where after 2.9 Brush
does not correctly slice data when using Line
components - fixes https://github.com/recharts/recharts/issues/3929 - thank you @HHongSeungWoo
Fix another TS issue from 2.9.
Line/ActiveDot
: Fix breaking type change for the onClick
function of activeDot
on Line
- this resolves https://github.com/recharts/recharts/issues/3922 - thank you @andrewangelle for the quick turnaroundBug fixes following 2.9.0
TypeScript
: fix breaking change in ActiveShape
types - fixes https://github.com/recharts/recharts/issues/3911 - thanks @andrewangelleCartesianGrid
: fix breaking change where you could no longer render CartesianGrid
without a y-axis - fixes https://github.com/recharts/recharts/issues/3907 - thanks @akamfoadLine
: fix infinite loop when strokeDasharray
is '0'
on Line
- fixes https://github.com/recharts/recharts/issues/3899 (and maybe others)Full Changelog: https://github.com/recharts/recharts/compare/v2.9.0...v2.9.1
Quite a lot this minor release! We sent out a cry for help and many answered - thank you so much for that 🙌🏼
This release aims at internal maintainability, long lingering bugs, and needed improvements. Highlights include equidistant tick improvements, an active bar feature, and an ~85k/~9kb (gzipped) bundle size reduction 🚀
Bar
: Implement activeBar for Bar component by @andrewangelle in https://github.com/recharts/recharts/pull/3756
CartesianGrid
: add syncWithticks
, horizonalValues
, and verticalValues
props to allow more grid line customization by @morozovkirill in https://github.com/recharts/recharts/pull/3746 solves https://github.com/recharts/recharts/issues/2153
CartesianAxis
: Improve interval option 'equidistantPreserveStart' by @nikolasrieble in https://github.com/recharts/recharts/pull/3768
CartesianAxis
: Throw an invariant when axisIds do not match between chart and axis components by @ckiferBrush
: add onDragEnd event to Brush component by @simkesd in https://github.com/recharts/recharts/pull/3774
Funnel
: activeShape should work with Tooltip by @andrewangelle in https://github.com/recharts/recharts/pull/3772
Scatter
: activeShape should work with Tooltip by @andrewangelle in https://github.com/recharts/recharts/pull/3839
Pie
: activeShape should work with Tooltip by @andrewangelle in https://github.com/recharts/recharts/pull/3818
RadialBar
: activeShape should work with Tooltip by @andrewangelle in https://github.com/recharts/recharts/pull/3803
CartesianGrid
: Remove offset attribute from lines by @branberry in https://github.com/recharts/recharts/pull/3854 solves https://github.com/recharts/recharts/issues/3810
ResponsiveContainer
: style prop is now passed down correctly by @d-gottlieb in https://github.com/recharts/recharts/pull/3726
Legend
: "Functions are not valid as a React child" error in <Legend/> when a function is passed as the payload #3749 by @chris-mcdonald-dev in https://github.com/recharts/recharts/pull/3750
Tooltip
: Fix tooltip position when container uses transform scale by @MateuszTrN in https://github.com/recharts/recharts/pull/3748
Tooltip
: Tooltip does not include data from all charts when a separate dataset is passed to chart prop data and specified on Line/Area/etc prop data by @andrewangelle in https://github.com/recharts/recharts/pull/3733 fixes https://github.com/recharts/recharts/issues/3669
Impossible to mention all of the great refactoring done this release thanks to @PavelVanecek (33 PRs in one month!!) and others! Notable improvements include (non-breaking) type safety enhancements and source code file size reductions, and unit test improvements that will help reduce regressions.
Full Changelog: https://github.com/recharts/recharts/compare/v2.8.0...v2.9.0
Minor changes - mostly focused on resolving errors from https://github.com/recharts/recharts/issues/3615
Pie
: default tabIndex and accept it as prop by @akamfoad in https://github.com/recharts/recharts/pull/3700
Sankey
: add prop to control sankey sorting by @daformat in https://github.com/recharts/recharts/pull/3690
Brush
: Add basic keyboard accessibility support for the Brush component by @julianna-langston in https://github.com/recharts/recharts/pull/3633
RadialBarChart
: support className prop by @victorgare in https://github.com/recharts/recharts/pull/3654
Full Changelog: https://github.com/recharts/recharts/compare/v2.7.2...v2.8.0
tiny 1 change patch release that merges https://github.com/recharts/recharts/pull/3662 to fix an accessibility issue
img
role from line dotsaccessibilityLayer
when there is no tooltip (fixes undefined access bug) by @julianna-langston in https://github.com/recharts/recharts/pull/3627
null
is passed into Line dot
(fixes undefined access bug although null
is not a supported type for dot
) by @ckifer in https://github.com/recharts/recharts/pull/3637
Full Changelog: https://github.com/recharts/recharts/compare/v2.7.1...v2.7.2
clipDot
is provided within dot
of Area and Line then dots disappear and NaN
is errors appear in the DOMFull Changelog: https://github.com/recharts/recharts/compare/v2.7.0...v2.7.1
Storybook updates, a few new features, bug fixes.
Note: This release may cause more reports of this defaultProps warning - we are aware of this and trying to come up with a feasible solution.
clipDot
prop by @tylerben @ckifer in https://github.com/recharts/recharts/pull/3602
angle
prop on XAxis visibility calculation by @bernardobelchior in https://github.com/recharts/recharts/pull/3576
Dot
to function component by @akamfoad in https://github.com/recharts/recharts/pull/3478
Polygon
to function component by @akamfoad in https://github.com/recharts/recharts/pull/3479
Reactangle
to function component by @akamfoad in https://github.com/recharts/recharts/pull/3480
Sector
to function component by @akamfoad in https://github.com/recharts/recharts/pull/3481
Trapezoid
to function component by @akamfoad in https://github.com/recharts/recharts/pull/3482
Symbols
to functional component by @Yilun-Sun in https://github.com/recharts/recharts/pull/3485
DefaultTooltipContent
to be functional component by @akamfoad in https://github.com/recharts/recharts/pull/3618
Full Changelog: https://github.com/recharts/recharts/compare/v2.6.2...v2.7.0