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(Chart): Add a CanvasBackgroundColor parameter #3458

Merged
merged 3 commits into from
May 9, 2024

Conversation

h2ls
Copy link
Collaborator

@h2ls h2ls commented May 9, 2024

Add a CanvasBackgroundColor parameter

Description

Added a new plugin named customCanvasBackgroundColor to Chart.razor.js that allows setting a custom background color for the chart canvas. The chartOption object and getChartOption function were updated to include this new plugin. Also, a new property CanvasBackgroundColor was added to the ChartOptions class in ChartOptions.cs to get or set the background color of the chart canvas.

close #3457

Added a new plugin named `customCanvasBackgroundColor` to `Chart.razor.js` that allows setting a custom background color for the chart canvas. The `chartOption` object and `getChartOption` function were updated to include this new plugin. Also, a new property `CanvasBackgroundColor` was added to the `ChartOptions` class in `ChartOptions.cs` to get or set the background color of the chart canvas.
Copy link

bb-auto bot commented May 9, 2024

Thanks for your PR, @azlis. Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@bb-auto bb-auto bot requested a review from ArgoZhang May 9, 2024 01:40
@bb-auto bb-auto bot added the enhancement New feature or request label May 9, 2024
@bb-auto bb-auto bot added this to the v8.5.0 milestone May 9, 2024
Copy link

codecov bot commented May 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.96%. Comparing base (b64f2a4) to head (94bc57b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3458   +/-   ##
=======================================
  Coverage   99.96%   99.96%           
=======================================
  Files         593      593           
  Lines       25080    25080           
  Branches     3636     3636           
=======================================
  Hits        25071    25071           
  Misses          4        4           
  Partials        5        5           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

ArgoZhang
ArgoZhang previously approved these changes May 9, 2024
ArgoZhang
ArgoZhang previously approved these changes May 9, 2024
@ArgoZhang ArgoZhang merged commit 4e2f472 into main May 9, 2024
5 checks passed
@ArgoZhang ArgoZhang deleted the lee/CanvasBackgroundColor branch May 9, 2024 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(Chart): Add a CanvasBackgroundColor parameter
2 participants