Profile Picture

Set PlotArea Background Color

Posted By cho seongho 5 Years Ago
Author
Message
cho seongho
Question Posted 5 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 15, Visits: 73
I'm basically using a 2D chart.I want to change the background color of PlotArea. However, when I run the code below, only the rest of the color changes except PlotArea.


nChartControl1.BackgroundStyle.FillStyle = new NColorFillStyle(Color.Black);
nChartControl1.Charts[0].BackgroundFillStyle = new NColorFillStyle(Color.Black);

Thank you for your help.

Nevron Support
This post has been flagged as an answer
Posted 5 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 3,039, Visits: 3,746
Hi Cho,

You need to change the color of back chart wall:
NChart chart = (NChart)nChartControl1.Charts[0];
chart.Wall(ChartWallType.Back).FillStyle = new NColorFillStyle(Color.Red);
Hope this helps - let us know if you meet any problems.

Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic