Skip to content

Commit 4855a6c

Browse files
kangzjmatticbot
authored andcommitted
Charts: align bar chart options with line chart (#42448)
* align bar chart options * changelog * revert some layout changes * fix unit test * reuse fixture data in line chart * remove unused options in story * add time series story Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/13889370705 Upstream-Ref: Automattic/jetpack@534134b
1 parent 9812363 commit 4855a6c

File tree

8 files changed

+83
-45
lines changed

8 files changed

+83
-45
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [0.9.1-alpha] - unreleased
8+
## [0.10.0-alpha] - unreleased
99

1010
This is an alpha version! The changes listed here are not final.
1111

1212
### Changed
13+
- Bar chart: align options with line chart
1314
- Update package dependencies.
1415

1516
## [0.9.0] - 2025-03-02
@@ -139,7 +140,7 @@ This is an alpha version! The changes listed here are not final.
139140
- Fixed lints following ESLint rule changes for TS [#40584]
140141
- Fixing a bug in Chart storybook data. [#40640]
141142

142-
[0.9.1-alpha]: https://github.com/Automattic/charts/compare/v0.9.0...v0.9.1-alpha
143+
[0.10.0-alpha]: https://github.com/Automattic/charts/compare/v0.9.0...v0.10.0-alpha
143144
[0.9.0]: https://github.com/Automattic/charts/compare/v0.8.4...v0.9.0
144145
[0.8.4]: https://github.com/Automattic/charts/compare/v0.8.3...v0.8.4
145146
[0.8.3]: https://github.com/Automattic/charts/compare/v0.8.2...v0.8.3

dist/cjs/components/bar-chart/bar-chart.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cjs/components/bar-chart/bar-chart.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,14 @@ type BaseChartProps<T = DataPoint | DataPointDate> = {
170170
};
171171
};
172172

173+
type BarChartTooltipData = {
174+
value: number;
175+
xLabel: string;
176+
yLabel: string;
177+
seriesIndex: number;
178+
};
173179
interface BarChartProps extends BaseChartProps<SeriesData[]> {
180+
renderTooltip?: (params: BarChartTooltipData) => ReactNode;
174181
}
175182
declare const _default$3: (props: Optional<BarChartProps, "height" | "width" | "size">) => react_jsx_runtime.JSX.Element;
176183

0 commit comments

Comments
 (0)