Releases: recharts/recharts
v2.5.0
What's Changed
Feat
ResponsiveContainer
:onResize
callback function by @ckifer in #3361XAxis
,YAxis
:includeHidden
prop - include all datapoints in domain calculation even when hidden by @neefrehman in #3103XAxis
,YAxis
: new interval optionequidistantPreserveStart
by @nikolasrieble in #3392
Fix
ResponsiveContainer
: default min-width to 0 to override default auto behavior that breaks flexbox layouts by @ckifer in #3391Area
: Add missing 'data' type to Area component by @ondrejvelisek in #3443Brush
/XAxis
: fix NaN regression wheninterval={0}
by @nikolasrieble in #3454ReferenceArea
/ReferenceLine
: revert regression whereifOverflow
prop is not obeyed due to missing defaultProps by @ckifer in #3455
Docs
- lots of storybook changes - go check it out!
Dependencies
- chore: explicitly upgrade minor version of react-smooth by @ckifer in #3397
- chore: upgrade react-resize-detector to 8.x by @ckifer in #3418
Refactor
- Refactoring: Adapt getTicks to increase reusability of code by @nikolasrieble in #3393
- Refactoring: Extract TicksUtils from CartesianAxis and add unit tests by @nikolasrieble in #3386
New Contributors
- @ondrejvelisek made their first contribution in #3443
Full Changelog: v2.4.3...v2.5.0
v2.4.3
v2.4.3
cherry-picked commit 7925fd7 to not pollute patch release with other changes
fix
- ensure
originalDomain
is defaulted if no domain is provided - broketickCount
calculation - #3377- assign default to
originalDomain
for re-use in generateCategoricalChart - add unit tests so this doesn't happen again
- assign default to
Full Changelog: v2.4.2...v2.4.3
v2.4.2
v2.4.2
cherry-picked commit b625f72 to not pollute patch release with other changes
fix
- fix broken zoom functionality in 2.4 - #3369
- if chart is categorical we still need to calculate categorical domain even if the domain is given by the user
Full Changelog: v2.4.1...v2.4.2
v2.4.1
Accidentally added storybook types as a subfolder to types so the package.json
is no longer referencing the correct types key.
- Add a tsconfig specifically for storybook with
noEmit: true
- Don't include
storybook/*
in tsc emit
What's Changed
Full Changelog: v2.4.0...v2.4.1
v2.4.0
This release marks the completion of recharts Milestone to migrate to Jest and React Testing Library. Thanks to all involved!
Check out the new storybook we're working on here
What's Changed
Trying to squish some bugs π
feat
- feat: Short-circuiting axis map creation with specified domain to improve performance by @bennettdams in #3293
fix
- ResponsiveContainer β memoize responsive container by @marcalexiei in #3169
- ResponsiveContainer - debounce updating early by @GreenGremlin in #3175 - fixes #3029
- Treemap - Non boolean attribute z error by @proke03 in #3228 - fixes #2952
- ErrorBar - overflowing chart area by @Yilun-Sun in #3300 - fixes #2978
- Bar - default
y
andheight
values correctly fornull
data points by @ckifer in #3346 - fixes #3344 - fix: remove axis domain default prop and calculate it dynamically by @lukask-proxora in #3328 - fixes #2593
- fix: functions are no longer spread onto SVG elements if an SVG attribute name conflcits with a recharts prop by @ckifer in #3327 - fixes #3310
type fixes
- Area - remove
points
from SVGProps by @Yilun-Sun in #3182 - Radar - remove
points
attribute from SVGProps by @ckifer in #3265 - refactor(Label & LabelList): refine types and disable react/no-array-index-key to avoid warnings by @marcalexiei in #3270
refactor
- ReferenceArea, ReferenceLine: added default values in params by @aushwin in #3283
- Bar- align code style by using destructuring for XAxis by @proke03 in #3349
- fix: typos by @Yilun-Sun in #3309
New Contributors
- @akib22 made their first contribution in #3179
- @proke03 made their first contribution in #3199
- @james2hey made their first contribution in #3229
- @nanguer made their first contribution in #3254
- @aushwin made their first contribution in #3283
- @bennettdams made their first contribution in #3293
Full Changelog: v2.3.2...v2.4.0
v2.3.2
What's Changed
fix
- fix bug introduced here - 9b83399#diff-9313d3857a9589abfe0113b9e0549e22b18b5f94c145c8908260f36be0d80c02R69 that causes accessing items out of index due to incorrect early return
Full Changelog: v2.3.1...v2.3.2
v2.3.1
v2.3.0
What's Changed
For the full list of changes between v2.2.0 and v2.3.0 please see the v2.3.0-alpha.0 and the v2.3.0-alpha.1 release notes.
fix
- fix: patch d3 libraries with victory-vendor to fix security vulnerability, failing test by @ckifer in #3167
- SECURITY VULNERABILITY FIX π: used
victory-vendor
to replace esm only versions ofd3
withcjs
compatible versions from victory. We will introduce a breaking change in 3.0 to move back toesm
only d3 libraries. - closes #3012
- SECURITY VULNERABILITY FIX π: used
memoize responsive container functions and fix bug using previous values in- reverted in 2.3.1setState
- 3214d14
refactor
- ReactUtils β find by type β refactor using generic by @marcalexiei in #3152
chore
jest migration
- fix: migrate area chart test to typescript by @Yilun-Sun in #3151
- Jest Migration: util/DataUtils (#3134) by @marcalexiei in #3147
- Jest Migration: Cell by @nikolasrieble in #3150
- test(JestMigration): convert FunnelChart (closes #3127) by @marcalexiei in #3153
- Jest Migration: ChartUtils by @nikolasrieble in #3148
- JestMigration: Label and LabelList by @nikolasrieble in #3154
- test(JestMigration): convert ResponsiveContainer by @marcalexiei in #3157
- LineChart.spec jest migration by @turculaurentiu91 in #3141
- fix: area chart test migration follow up by @Yilun-Sun in #3161
- fix: area chart test part3 by @Yilun-Sun in #3163
- test: add jest coverage, differentiate jest and karma envs to fix errors by @ckifer in #3164
New Contributors
- @Yilun-Sun made their first contribution in #3151
Full Changelog:
v2.3.0-alpha.1
What's Changed
Release v2.3.0-alpha.1 as an alpha release for 2.3.0 - this is the first release that contains the non-breaking security vulnerability fix for #3012
fix
- patch/d3-color vulnerability fix - victory-vendor by @ckifer in #3135
- AreaChart: Respect baseValue of AreaChart, but allow override from Area by @nikolasrieble in #3140
chore
- chore(deps): bump json5 from 1.0.1 to 1.0.2 by @dependabot in #3136
- chore(deps-dev): remove unused dependencies by @marcalexiei in #3144
jest migration
- refactor: log and dom utils tests to jest and ts by @ckifer in #3133
- Jest Migration: ReactUtils by @nikolasrieble in #3139
- test(jest): remove console error and warn from stdout in LogUtils and ReactUtils by @marcalexiei in #3142
- test(ShallowEqual): convert test using jest by @marcalexiei in #3143
- Jest Migration: util/CartesianUtils by @nikolasrieble in #3145
New Contributors
- @marcalexiei made their first contribution in #3142
Full Changelog: v2.3.0-alpha.0...v2.3.0-alpha.1
v1.8.6
Update recharts 1.x to be even with the 1.x branch by releasing 1.8.6
What's Changed
chore
fix
- Fixed issue: Vertical layout throws [DecimalError] #1920 by @reachtokish in #1949
- Fixed tooltip flickering in 1.x branch by @ritwickdey in #2254
- Fix PropType typo in Tooltip by @mlh758 in #2775
New Contributors
- @reachtokish made their first contribution in #1949
- @ritwickdey made their first contribution in #2254
- @mlh758 made their first contribution in #2775
Full Changelog: v1.8.5...v1.8.6