What's Changed
- Added the ability to add victory charts title and desc props for better accessibility by @shankstee in #2199
- Bump axios from 0.19.2 to 0.21.2 in /docs by @dependabot in #2188
- Bump cross-fetch from 3.1.4 to 3.1.5 by @dependabot in #2206
- add style interface to SliceProps type by @heythisispaul in #2212
- Add jest and react testing library tests for victory-line and victory-area by @becca-bailey in #2196
- fix typos in scale prop documentation by @heythisispaul in #2218
- Bump cross-fetch from 3.1.4 to 3.1.5 by @dependabot in #2213
- Bump cross-fetch from 3.1.4 to 3.1.5 in /demo/rn by @dependabot in #2207
- add box plot jest/rtl tests by @heythisispaul in #2225
- jest and rtl unit tests for bar components by @heythisispaul in #2216
- Add victory-vendor package for d3 dependencies by @becca-bailey in #2204
Introducing the victory-vendor
package
In order to safely upgrade d3-packages while still allowing Node.js users to use ESM imports, we introduced a new package called victory-vendor
for babelifying our d3 packages to make them more compatible with Victory. For more info, check out the description here.
This should not make much of a difference for the end user, but there are a couple changes to be aware of. Upgrading d3-scale
introduced some minor scaling changes. If you (like us) are using Chromatic or another visual regression testing tool, it may pick up some very small differences in the placement of axes and data points. d3-scale
also introduced some changes to the scale.tickFormat
function that changes the default formatting for log scales.
Before | After |
---|---|
If you are using a log scale and don't wish to use d3's default label formatting, You can use the tickFormat
prop on a VictoryAxis
component to override this default formatting. https://formidable.com/open-source/victory/docs/victory-axis#tickformat
New Contributors
- @shankstee made their first contribution in #2199
- @heythisispaul made their first contribution in #2212
Full Changelog: v36.3.2...v36.4.0