Hi
I have been using Highcharts for a while now and till a couple of days ago was themeing them using JS. Recently I moved from Angular to VueJs and decided to use CSS to style my charts so that I can better UX while changing themes. Everything works great on my website but on trying to export or print, I get a black output.
Now, I have seen lots of questions about this in the forums and I have tried a few of them but none of them solves my problem. Some either solve it partially and some are so hacky that I am worried they might break anytime. First let me tell you about my setup.
I am using Vuetify as my base framework over Vue to style my website. In order to have smooth transition if themes in Highcharts, I have added extra classes `theme--light` and `theme--dark` over the classes used by highcharts. I have noticed that if I remove these classes, Highcharts is able to export nicely.
I have also tried to add `this.container.classList.add('theme--dark')` in the `exporting.chartOptions.chart.events.load` method and while this somewhat works for exporting images (it doesn't take the font I specified), it still causes a black printout. I have tried using offline exporter but it didn't have any noticeable effect.
I really want this to be solved and as such I am fully replicated by frontend setup in https://codesandbox.io/s/elitebgs-chart-export-pbnnc. Its an open source project license under Apache2 so I able to share the source code.
A few things about the project:
Please run: `npm run lint:fix` if you run into any linting issues
Run `npm run startdev` to run and watch for changes
Please go to https://pbnnc-3012.sse.codesandbox.io/s ... 5be0b97df1 to see the graphs and use the file at https://codesandbox.io/s/elitebgs-chart ... eChart.vue to find the source of the above link.
Let me know if anything else will be needed.