Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(charts): Update V9 Charts to use DataVizGradientPalette #33323

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

shawn-grant
Copy link
Contributor

@shawn-grant shawn-grant commented Nov 21, 2024

Implement DataVizGradientPalette and rounded corners in v9 charts as default

Modified

  • DonutChart
  • HorizontalBarChart

New Behavior (UI)

DonutChart

HorizontalBarChart

image

Notable Changes:

  • Added DataVizGradientPalette in utilities/gradients.ts
  • Replaced color properties with gradient in types/DataPoint.ts

New Usage

const data: ChartProps = {
  chartData: [
    {
      legend: 'first',
      data: 20000,
      // new `gradient` prop
      gradient: getGradientFromToken(DataVizGradientPalette.gradient1),
    },
    {
      legend: 'second',
      data: 39000,
      // custom gradient
      gradient: [ '#ff88cc', '#db3794' ],
    },
  ],
};

TODO

  • VerticalBarChart

Related

#32008

@shawn-grant shawn-grant marked this pull request as ready for review November 21, 2024 20:27
@shawn-grant shawn-grant requested a review from a team as a code owner November 21, 2024 20:27
@AtishayMsft
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link

📊 Bundle size report

✅ No changes found

@AtishayMsft
Copy link
Contributor

PR CI is failing.

Copy link

Pull request demo site: URL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants