Closed PaulC91 closed 1 year ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Feel free to reopen it if you find it necessary.
Hi Joshua!
I've been using your super nice hc sparklines inside shinydashboard value boxes as demonstrated in your blogpost: https://jkunst.com/blog/posts/2020-06-26-valuebox-and-sparklines/
But I've come across a strange bug when adding export options to other regular highcharts on the dashboard. When exporting the regular chart, some theme elements of
hc_theme_sparkline_vb()
seem to be applied to the exported chart resulting in white coloured bars (bar chart in my case with a white background so bars are no longer visible). Chart margins also look to be reduced to 0 like in the sparkline charts.I've tried various methods of trying to override the sparkline themes that are being applied to the exported chart, like setting colors via
hc_exporting(chartOptions = list(colors = "#000000"))
for example but nothing is working and data geoms on the chart always appear white.I've added a full reprex below with a value sparkline chart and regular chart inside a shinydashboard with the problem occurring when exporting the regular chart. When i remove the value sparkline from the dashboard the export works fine.
Any advice on how to resolve this would be appreciated!