Skip to content

Commit 0859f02

Browse files
HDS-5289 Add title to donut chart example
1 parent 2eaf73b commit 0859f02

File tree

2 files changed

+2
-2
lines changed
  • packages/components/src/components/hds/charts/donut
  • showcase/app/templates/page-components/charts

2 files changed

+2
-2
lines changed

packages/components/src/components/hds/charts/donut/options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default {
2-
title: ' ', // Set title using @title on the component
2+
title: '', // Set title using @title on the component
33
resizable: true,
44
legend: {
55
// alignment: 'left', // = alignment w/i container, options: 'left', 'right', 'center'

showcase/app/templates/page-components/charts/index.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<Hds::Layout::Grid @columnWidth="33.33%" @gap="12">
1414
<Hds::Card::Container @hasBorder={{true}} {{style padding="1.5rem"}}>
1515
<Hds::Text::Display @size="300">Clusters</Hds::Text::Display>
16-
<Hds::Charts::Donut @data={{this.model.DONUT_CLUSTERS_DATA}} />
16+
<Hds::Charts::Donut @data={{this.model.DONUT_CLUSTERS_DATA}} @title="Cluster types" />
1717
</Hds::Card::Container>
1818

1919
<Hds::Card::Container @hasBorder={{true}} {{style padding="1.5rem"}}>

0 commit comments

Comments
 (0)