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

Change the chartArea background color of gvisAnnotationChart #98

Closed
ghost opened this issue Apr 1, 2022 · 5 comments
Closed

Change the chartArea background color of gvisAnnotationChart #98

ghost opened this issue Apr 1, 2022 · 5 comments

Comments

@ghost
Copy link

ghost commented Apr 1, 2022

How to change the chartArea background color of gvisAnnotationChart?
I tried this but didn't work

gvisAnnotationChart(
...,
options = list(
    ...,
    chart = list(
      backgroundColor = "#D3D3D3"
    )
  )
)
@mages
Copy link
Owner

mages commented Apr 1, 2022

Unfortunately, the Google chart API doesn't have an option to change the background colour: https://developers.google.com/chart/interactive/docs/gallery/annotationchart

@mages mages closed this as completed Apr 1, 2022
@ghost
Copy link
Author

ghost commented Apr 1, 2022

I think that it can be done. See this answer

@mages
Copy link
Owner

mages commented Apr 1, 2022

It is not officially supported by Google. I suggest you ask the Google developers directly on the Google Chart API Forum: https://groups.google.com/g/google-visualization-api

@ghost
Copy link
Author

ghost commented Apr 6, 2022

That's the way https://stackoverflow.com/a/71739376/299077

@mages
Copy link
Owner

mages commented Apr 6, 2022

That's great news! I shall include it into the examples of the gvisAnnotationChart help file.

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

No branches or pull requests

1 participant