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

Add support to set chart and plot area color and border #88

Merged
merged 3 commits into from
Apr 26, 2024

Conversation

trekonom
Copy link
Contributor

@trekonom trekonom commented May 12, 2023

The PR extends mschart by adding support to set the chart and plot area background fill and border.

The goal is to give users more options to create charts according to existing style guides, layouts or themes.

To this end I added four new theme arguments chart/plot_background and chart/plot_border.

As a use case and application of the new feature the PR also adds theme_ggplot2() providing a mschart theme inspired by ggplot2::theme_grey and chart_fill_ggplot2() to apply the default ggplot2 hue pal to a mschart. These functions are of course not needed. But I could imagine that having some built-in themes might be a nice feature.

Let me know what you think, if you have suggestions for improvements or ...

trekonom and others added 3 commits May 11, 2023 18:16
…and plot area.

* Add theme arguments chart/plot_border and chart/plot_background.
* Add theme_ggplot2() and chart_fill_ggplot2().
* Add theme_ggplot2() example illustration.
@davidgohel davidgohel merged commit 944c6d5 into ardata-fr:master Apr 26, 2024
4 checks passed
@davidgohel
Copy link
Member

thank you @trekonom and sorry for the delay of a year...

@trekonom trekonom deleted the plot-bg branch April 27, 2024 09:07
@trekonom
Copy link
Contributor Author

Great and thanks, David. Already guessed that your are way to busy. (; And as a ggplot2 user by heart that wasn't super important for me. :D But being able to create native Excel charts would make my life easier. Then my colleagues and clients can customise the charts themselves.

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