Skip to content

Commit 0447b22

Browse files
committed
fix(PieChart/DonutChart): re-release active segment feature
Due to failed previous release.
1 parent b2fae12 commit 0447b22

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

packages/charts/src/components/PieChart/PieChart.stories.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ export const renderFormatedStory = (props) => {
9595
accessor: 'users',
9696
formatter: (d) => (d > 200 ? 'over 200' : 'lower')
9797
}}
98+
chartConfig={{
99+
activeSegment: 1,
100+
showActiveSegmentDataLabel: true
101+
}}
98102
/>
99103
);
100104
};

packages/charts/src/interfaces/IPolarChartConfig.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ export interface IPolarChartConfig {
1111
tooltipItemStyle?: CSSProperties;
1212
tooltipLabelStyle?: CSSProperties;
1313

14+
/**
15+
* Index of the segment where an additional outer border should be applied as highlight.
16+
*/
1417
activeSegment?: number;
18+
/**
19+
* Flag whether the highlighted segment should display its data label.
20+
*/
1521
showActiveSegmentDataLabel?: boolean;
1622
}

0 commit comments

Comments
 (0)