Profile Picture

NChartControl with transparent background failing to clear

Posted By rich dudley 6 Years Ago

NChartControl with transparent background failing to clear

Author
Message
rich dudley
Question Posted 6 Years Ago
View Quick Profile
Forum Guru

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
Last Active: Last Year
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





Similar Topics


Reading This Topic