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

hc_exporting converts plot to dark mode #808

Closed
analytichealth opened this issue Feb 3, 2024 · 2 comments
Closed

hc_exporting converts plot to dark mode #808

analytichealth opened this issue Feb 3, 2024 · 2 comments

Comments

@analytichealth
Copy link

Using hc_exporting the png or jpeg images are formatted with different colours than the original plot.

I tried on Linux and Mac and get the same outcome.

Highcharter version 0.9.4
R version 4.3.2 (also tried on 4.3.1)

In this example, the plot will have a white background and grey axis lines. But after selecting 'Download PNG image' from the chart context menu the downloaded image will have a black background and white axis lines.

In the past the downloaded image would be the same as the original.

library(highcharter)
highchart() |> 
  hc_xAxis(categories = month.abb) |> 
  hc_add_series(name = "Tokyo", data = sample(1:12)) |> 
  hc_exporting(
    enabled = TRUE,
    filename = "custom-file-name"
  )
@tianhuidong
Copy link

 hc_exporting(
    chartOptions = list(chart = list(backgroundColor = "#FFFFFF")),
    enabled = TRUE,
    filename = "custom-file-name"
  )

@analytichealth
Copy link
Author

Thank you this does solve it

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

2 participants