Skip to content

Commit a22779f

Browse files
committed
update changelog
1 parent 0e0ffb0 commit a22779f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Victory Changelog
22

3+
## 35.8.0 (2020-05-19)
4+
5+
- [#1858](https://github.com/FormidableLabs/victory/pull/1858) - `domainPadding` updates
6+
7+
- updates how `domainPadding` is applied to charts when 1) the additional padding _would not_ result new quadradants being added, or 2) the user has set `singleQuadrantDomainPadding={false}`. In these cases, `domainPadding` is applied by calculating a new, smaller range that takes the desired, pixel-based padding into account, and then adding domain padding such that the previous domain fits entirely within the new, smaller range. In most cases, this change will make it much easier to do things like create bar charts where the first bar starts cleanly at the edge of the chart, by setting `domainPadding={{ x: myBarWidth / 2 }}`
8+
**This may cause visual changes for charts that use very large values for `domainPadding`. The `domainPadding` prop may need to be adjusted**
9+
10+
- calculates a more exact `defaultDomainPadding` for grouped bar charts based on the `offset`, number of bars, and the width of each bar (either from the `barWidth` prop or from a default `barWidth` based on the number of bars and the range). Previously, `defaultDomainPadding` was approximated based only on `offset` and number of bars.
11+
312
## 35.7.2 (2021-05-18)
413

514
- [#1852](https://github.com/FormidableLabs/victory/pull/1852) - Fixes a bug related to zooming axes when `tickFormat` is given as an array. Thanks @jhumbug!

0 commit comments

Comments
 (0)