My website has a dark theme so the chart has a black background with white text, but when it's exported to PDF the background color should be white and the text color should be black. How do you set the colors of the chart to be different for when it's being exported to PDF?
I figured out how to do it. You have to set the color on things like the legend to "currentColor" which tells it to use the color that's defined on the parent html element. You can then set the text color to black in css for the .k-pdf-export class which is applied when it's exported.
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.
Thank you for your help, that accomplishes what I was looking for. I had read that help doc on saving charts to pdf but it didn't mention that you could pass all of that in to the exportVisual method.