diff --git a/playbook/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.jsx b/playbook/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.jsx index cbbd4bb688..bab4808051 100644 --- a/playbook/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.jsx +++ b/playbook/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.jsx @@ -20,6 +20,9 @@ const barGraphOptions = { }, }, xAxis: { + legend: { + itemMarginTop: 62, + }, labels: { useHTML: true, formatter: function () { @@ -49,10 +52,8 @@ const BarGraphCustom = (props) => ( customOptions={barGraphOptions} id="bar-custom" legend - subTitle="Subtitle to replace" title="Bar Graph with Custom Overrides" xAxisCategories={['Angry', 'Frown', 'Meh', 'Smile', 'Laugh']} - yAxisMin={0} {...props} /> diff --git a/playbook/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb b/playbook/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb index ea91c42c7f..7eb13f9e0c 100644 --- a/playbook/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb +++ b/playbook/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb @@ -24,18 +24,18 @@ ], labels: { useHTML: true, + }, + legend: { + itemMarginTop: 62, } } } } %> <%= pb_rails("bar_graph", props: { - axis_title: '', chart_data: data, id: "bar-default", legend: true, - y_axis_min: 0, - subtitle: 'Subtitle to replace', title: 'Bar Graph with Custom Overrides', custom_options: bar_graph_options }) %>