Skip to content

Commit

Permalink
updated color code to stackedBarChart benchmark example data (#30574)
Browse files Browse the repository at this point in the history
  • Loading branch information
v-baambati authored Feb 19, 2024
1 parent 2d8daef commit 0caeee1
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import * as React from 'react';
import { StackedBarChart, IChartProps, IChartDataPoint } from '@fluentui/react-charting';
import {
StackedBarChart,
IChartProps,
IChartDataPoint,
DataVizPalette,
getColorFromToken,
} from '@fluentui/react-charting';
import { DefaultPalette } from '@fluentui/react/lib/Styling';

export class StackedBarChartBenchmarkExample extends React.Component<{}, {}> {
public render(): JSX.Element {
const points: IChartDataPoint[] = [
{ legend: 'first', data: 10, color: DefaultPalette.redDark },
{ legend: 'first', data: 10, color: getColorFromToken(DataVizPalette.color7) },
{ legend: 'second', data: 90, color: DefaultPalette.neutralTertiaryAlt, placeHolder: true },
];

Expand Down

0 comments on commit 0caeee1

Please sign in to comment.