@automattic/charts 1.8.1 → 1.10.0
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 +25 -0
- package/dist/index.cjs +615 -58
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +124 -36
- package/dist/index.d.cts +104 -4
- package/dist/index.d.ts +104 -4
- package/dist/index.js +615 -63
- package/dist/index.js.map +1 -1
- package/package.json +10 -10
- package/src/charts/area-chart/area-chart.module.scss +3 -1
- package/src/charts/area-chart/area-chart.tsx +5 -2
- package/src/charts/bar-chart/bar-chart.module.scss +6 -2
- package/src/charts/bar-chart/private/comparison-bars.tsx +6 -0
- package/src/charts/conversion-funnel-chart/conversion-funnel-chart.module.scss +15 -12
- package/src/charts/geo-chart/geo-chart.tsx +153 -3
- package/src/charts/geo-chart/index.ts +1 -1
- package/src/charts/geo-chart/test/geo-chart.test.tsx +132 -2
- package/src/charts/geo-chart/types.ts +11 -0
- package/src/charts/heatmap-chart/heatmap-chart.module.scss +103 -0
- package/src/charts/heatmap-chart/heatmap-chart.tsx +422 -0
- package/src/charts/heatmap-chart/index.ts +4 -0
- package/src/charts/heatmap-chart/private/build-calendar-data.ts +81 -0
- package/src/charts/heatmap-chart/private/heatmap-legend.tsx +53 -0
- package/src/charts/heatmap-chart/private/index.ts +5 -0
- package/src/charts/heatmap-chart/private/use-heatmap-colors.ts +45 -0
- package/src/charts/heatmap-chart/test/build-calendar-data.test.ts +88 -0
- package/src/charts/heatmap-chart/test/heatmap-chart.test.tsx +301 -0
- package/src/charts/heatmap-chart/test/use-heatmap-colors.test.ts +34 -0
- package/src/charts/heatmap-chart/types.ts +42 -0
- package/src/charts/index.ts +1 -0
- package/src/charts/leaderboard-chart/leaderboard-chart.module.scss +20 -8
- package/src/charts/line-chart/line-chart.module.scss +6 -4
- package/src/charts/line-chart/line-chart.tsx +6 -2
- package/src/charts/line-chart/private/line-chart-annotation.tsx +16 -3
- package/src/charts/private/grid-control/grid-control.module.scss +1 -4
- package/src/charts/private/svg-empty-state/svg-empty-state.module.scss +1 -1
- package/src/charts/private/with-responsive/test/with-responsive.test.tsx +14 -0
- package/src/charts/private/with-responsive/with-responsive.tsx +12 -0
- package/src/charts/private/x-zoom.module.scss +6 -3
- package/src/components/legend/private/base-legend.module.scss +3 -1
- package/src/components/tooltip/base-tooltip.module.scss +4 -1
- package/src/components/trend-indicator/trend-indicator.module.scss +5 -3
- package/src/hooks/use-xychart-theme.ts +24 -0
- package/src/index.ts +13 -1
- package/src/providers/chart-context/themes.ts +32 -16
- package/src/types.ts +19 -2
- package/src/utils/color-utils.ts +36 -0
- package/src/utils/test/color-utils.test.ts +33 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,29 @@ 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.10.0] - 2026-07-09
|
|
9
|
+
### Added
|
|
10
|
+
- Add GeoChart error reporting. [#50251]
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
- Update package dependencies. [#49272]
|
|
14
|
+
- Update WPDS design tokens to the @wordpress/theme 0.16/0.17 names and migrate the Storybook decorator to the public ThemeProvider export (see https://github.com/WordPress/gutenberg/blob/trunk/packages/theme/CHANGELOG.md#0160-2026-06-24 ). [#49272]
|
|
15
|
+
|
|
16
|
+
## [1.9.0] - 2026-07-06
|
|
17
|
+
### Added
|
|
18
|
+
- Add HeatmapChart for matrix and calendar/contribution-style data, with a compact mode and a composition color-scale legend. [#50065]
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
- Bar Chart: Declare a local process type so the comparison-bars module type-checks when imported as source by other packages. [#49205]
|
|
22
|
+
- Replace hardcoded surface, foreground, and UI colors with WPDS design tokens. [#49946]
|
|
23
|
+
- Tokenize box-shadow, transition, and animation values with WPDS elevation and motion tokens, making elevation and motion themeable. [#49947]
|
|
24
|
+
- Update package dependencies. [#50097] [#50183] [#50212]
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
- Conversion Funnel Chart: Let the funnel shrink to fit height-constrained cards instead of enforcing a 200px minimum that forced a scrollbar. [#50163]
|
|
28
|
+
- GeoChart: Load the required Google Charts package explicitly. [#50018]
|
|
29
|
+
- Line Chart: Fix typing on `.gradient.from` and `.gradient.to` to better match behavior and documentation. [#50212]
|
|
30
|
+
|
|
8
31
|
## [1.8.1] - 2026-06-26
|
|
9
32
|
### Fixed
|
|
10
33
|
- Fix Bar Chart comparison mode — pair the keyboard tooltip with the focused bar, keep the value axis zero-based, and make the tooltip label/value separator translatable. [#49959]
|
|
@@ -889,6 +912,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
889
912
|
- Fixed lints following ESLint rule changes for TS [#40584]
|
|
890
913
|
- Fixing a bug in Chart storybook data. [#40640]
|
|
891
914
|
|
|
915
|
+
[1.10.0]: https://github.com/Automattic/charts/compare/v1.9.0...v1.10.0
|
|
916
|
+
[1.9.0]: https://github.com/Automattic/charts/compare/v1.8.1...v1.9.0
|
|
892
917
|
[1.8.1]: https://github.com/Automattic/charts/compare/v1.8.0...v1.8.1
|
|
893
918
|
[1.8.0]: https://github.com/Automattic/charts/compare/v1.7.0...v1.8.0
|
|
894
919
|
[1.7.0]: https://github.com/Automattic/charts/compare/v1.6.0...v1.7.0
|