Nevron Forum

Charts with whitebackground

https://www.nevron.com/Forum/Topic8166.aspx

By Naveen Anne - Friday, September 20, 2013

Hi There,

As per our requirement we need to create charts on a white background but I see striped lines even though I use the below properties which I need to get rid off
nChartControl1.BackgroundStyle.FillStyle = new NColorFillStyle(Color.White);
chart.Wall(ChartWallType.Back).FillStyle = new NColorFillStyle(Color.White);
chart.Wall(ChartWallType.Back).Visible=false;
chart.BackgroundFillStyle = new NColorFillStyle(Color.White);

Can you please let me know what property(s) I need to use to achieve the above

Thanks in Advance,
Naveen Anne.
By Nevron Support - Friday, September 20, 2013

Hi Naveen,

We're not quite sure what exactly you want to turn off - most likely you need to turn off the frame around the chart:

nChartControl1.BackgroundStyle.FrameStyle.Visible = false;

If this is the case please attach an image of the chart you want to modify.

By Naveen Anne - Friday, September 20, 2013

Hi

I've already tried that it just removes the outer frame. I want to remove the striped lined in the chart area.

Attached is the screen shot FYR...

Thanks,
Naveen Anne
By Nevron Support - Monday, September 30, 2013

Hi Naveen,

Somewhere in your code you add an instance of the NScaleLabelStripStyle to the axis scale configurator that's why it shows stripes. It should look something like:

someScale.StripStyles.Add(interlaceStyle);

Simply remove that code...