How to set chart background color

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
vifani
Posts: 49
Joined: Thu May 02, 2013 8:35 am

How to set chart background color

Post by vifani » Tue May 26, 2015 9:03 am

Hi,
I want to print a chart using SaveToFile method and I want to set the chart background color to white (like the paper).
If I set the Background property to White, the exported file have the ColorTheme background and not the white I set.
How can I do this?

ArctionJari

Re: How to set chart background color

Post by ArctionJari » Tue May 26, 2015 9:25 am

Thanks for bringing this up. We'll look into this.

vifani
Posts: 49
Joined: Thu May 02, 2013 8:35 am

Re: How to set chart background color

Post by vifani » Tue May 26, 2015 9:33 am

I resolved setting ChartBackground property and not Background property (like the guide says)

Code: Select all

m_chart.ChartBackground = new Fill() { Color = Colors.White, GradientColor = Colors.White };

Post Reply