@automattic/charts 1.4.3 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/SECURITY.md +0 -1
- package/dist/index.cjs +544 -195
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +38 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +22 -1
- package/dist/index.d.ts +22 -1
- package/dist/index.js +839 -490
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/charts/area-chart/area-chart.tsx +39 -21
- package/src/charts/area-chart/test/area-chart.test.tsx +83 -3
- package/src/charts/area-chart/types.ts +15 -0
- package/src/charts/line-chart/line-chart.tsx +102 -84
- package/src/charts/line-chart/test/line-chart.test.tsx +41 -0
- package/src/charts/line-chart/types.ts +6 -0
- package/src/charts/private/test/x-zoom.test.tsx +142 -0
- package/src/charts/private/x-zoom.module.scss +45 -0
- package/src/charts/private/x-zoom.tsx +209 -0
- package/src/types.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,19 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.5.1] - 2026-06-05
|
|
9
|
+
### Changed
|
|
10
|
+
- Charts: clip zoomable LineChart/AreaChart series to the plot area so zoomed views don't paint outside the axes. [#49357]
|
|
11
|
+
- Update dependencies. [#49354]
|
|
12
|
+
|
|
13
|
+
## [1.5.0] - 2026-06-01
|
|
14
|
+
### Added
|
|
15
|
+
- Charts: Optional zoomable X-axis on LineChart and AreaChart. Pass `zoomable` to enable drag-to-zoom; a reset button appears in the top-right while zoomed. [#49167]
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
- Charts: AreaChart Y-axis now rescales to the visible series when interactive legends toggle items off. Pass `rescaleYOnLegendToggle={ false }` to restore the previous pinned-extent behavior. [#49241]
|
|
19
|
+
- Update package dependencies. [#48404]
|
|
20
|
+
|
|
8
21
|
## [1.4.3] - 2026-05-25
|
|
9
22
|
### Changed
|
|
10
23
|
- Update dependencies. [#43811]
|
|
@@ -842,6 +855,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
842
855
|
- Fixed lints following ESLint rule changes for TS [#40584]
|
|
843
856
|
- Fixing a bug in Chart storybook data. [#40640]
|
|
844
857
|
|
|
858
|
+
[1.5.1]: https://github.com/Automattic/charts/compare/v1.5.0...v1.5.1
|
|
859
|
+
[1.5.0]: https://github.com/Automattic/charts/compare/v1.4.3...v1.5.0
|
|
845
860
|
[1.4.3]: https://github.com/Automattic/charts/compare/v1.4.2...v1.4.3
|
|
846
861
|
[1.4.2]: https://github.com/Automattic/charts/compare/v1.4.1...v1.4.2
|
|
847
862
|
[1.4.1]: https://github.com/Automattic/charts/compare/v1.4.0...v1.4.1
|