Replies: 1 comment
-
To make the background of a LiveCharts2 CartesianChart transparent in WinForms, you need to adjust the chart's background using the Chart's specific property and ensure that the BackColor of the control itself is transparent. Setting BackColor to Color.Transparent won't work directly as LiveCharts may be rendering over a non-transparent background. Here’s how you can make the background transparent:
cartesianChart1.Background = Brushes.Transparent;
cartesianChart1.AxisX.Fill = Brushes.Transparent;
cartesianChart1.Parent.BackColor = Color.Transparent;
By following these steps, you should be able to make the CartesianChart background fully transparent and allow overlapping charts to show through. |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm using LiveCharts2 with WinForms and would like to make the background of my CartesianChart transparent. I’ve tried setting BackColor = Color.Transparent, but it still shows as a solid color. Is there a way to achieve a fully transparent background, so that overlapping charts show through each other?
Thank you for any advice!
Beta Was this translation helpful? Give feedback.
All reactions