Skip to content

Commit 4416d0b

Browse files
authored
Update leaderboard chart (#45480)
* Add unresponsive leaderboard to exports * Stop leaderboard expanding vertically * Add changelog
1 parent afe6cd8 commit 4416d0b

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: minor
2+
Type: changed
3+
4+
Leaderboard chart: Update exports and layout flex behaviour

projects/js-packages/charts/src/components/leaderboard-chart/leaderboard-chart.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -242,15 +242,7 @@ const LeaderboardChartInternal: FC< LeaderboardChartProps > = ( {
242242
gap: showLegend ? '16px' : '0',
243243
} }
244244
>
245-
<Grid
246-
className={ styles.leaderboardGrid }
247-
templateColumns="minmax(0, 1fr) auto"
248-
rowGap={ rowGap }
249-
columnGap={ columnGap }
250-
style={ {
251-
flex: 1,
252-
} }
253-
>
245+
<Grid templateColumns="minmax(0, 1fr) auto" rowGap={ rowGap } columnGap={ columnGap }>
254246
{ data.map( entry => {
255247
const colorIndex = Math.sign( entry.delta ) + 1;
256248
const deltaColor = deltaColors[ colorIndex ];

projects/js-packages/charts/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export {
77
PieSemiCircleChartUnresponsive,
88
} from './components/pie-semi-circle-chart';
99
export { BarListChart, BarListChartUnresponsive } from './components/bar-list-chart';
10-
export { LeaderboardChart } from './components/leaderboard-chart';
10+
export { LeaderboardChart, LeaderboardChartUnresponsive } from './components/leaderboard-chart';
1111
export { ConversionFunnelChart } from './components/conversion-funnel-chart';
1212

1313
// Chart components

0 commit comments

Comments
 (0)