NChartControl with transparent background failing to clear


https://www.nevron.com/Forum/Topic12531.aspx
Print Topic | Close Window

By rich dudley - 6 Years Ago
Using this code to start building my chart:
      chartControl.Clear();
      chartControl.Size = new Size(options.width, options.height);
      chartControl.BackgroundStyle.FrameStyle.Visible = false;
      chartControl.BackgroundStyle.FillStyle = new NColorFillStyle(Color.Transparent);
      NCartesianChart chart = (NCartesianChart)chartControl.Charts[0];
If I have the line setting the fillstyle to transparent the old charts never clear. If I redraw the chart it just stacks on top of previous. If I remove the fillstyle line, it behaves correctly.
https://www.nevron.com/forum/uploads/images/9df8e9a6-3ab0-4c2d-a477-1d1d.png
By Nevron Support - 6 Years Ago
Hi Rich,

We don't support transparent background for the control anymore as it was too problematic. You can send a project replicating the problem at support@nevron.com for further review.