NChartControl with transparent background failing to clear


Author
Message
rich dudley
rich dudley
Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)
Group: Forum Members
Posts: 33, Visits: 76
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

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search