Skip to content

Commit 904be31

Browse files
authored
Feature [DEV-11788] Dynamic y-axis width for horizontal bars (#2402)
* Add gridlines for horizontal bars * Make y-axis dynamic for horizontal bar charts * Add story * Leave space for y-axis labels * Reduce font size of horizontal bar data labels * Specify corrent font sizes * Nudge lollipop labels * Use dynamic y-axis width for lollipop charts * Improve label padding * Remove width ref * Cleanup
1 parent c77baac commit 904be31

File tree

12 files changed

+623
-59
lines changed

12 files changed

+623
-59
lines changed

packages/chart/src/_stories/Chart.stories.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import lollipop from './_mock/lollipop.json'
77
import forestPlot from '../../examples/feature/forest-plot/forest-plot.json'
88
import pairedBar from './_mock/paired-bar.json'
99
import horizontalBarConfig from './_mock/horizontal_bar.json'
10+
import horizontalBarsDynamicYAxis from './_mock/horizontal-bars-dynamic-y-axis.json'
1011
import barChartLabels from './_mock/barchart_labels.mock.json'
1112
import pieConfig from './_mock/pie_with_data.json'
1213
import pieCalculatedArea from './_mock/pie_calculated_area.json'
@@ -59,6 +60,13 @@ export const Horizontal_Bar: Story = {
5960
}
6061
}
6162

63+
export const Horizontal_Bars_Dynamic_Y_Axis: Story = {
64+
args: {
65+
config: horizontalBarsDynamicYAxis,
66+
isEditor: false
67+
}
68+
}
69+
6270
export const BarChart_Labels: Story = {
6371
args: {
6472
config: barChartLabels

0 commit comments

Comments
 (0)