Click here to Skip to main content
15,896,359 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Sir,

I am showing graph using zed graph in C# WinForm
and I have assigned bgcolor to zed graph control as follows:

C#
GraphPane myPane = zedGraphControl2.GraphPane;
            myPane.Fill.Color = this.BackColor;
            myPane.Chart.Fill.Color = this.BackColor;


its working but
C#
myPane.Chart.Fill.Color = this.BackColor;


this gives me problem.

The color of the chart is not exactly like this.backcolor. It is like gradient color from left side.
Right side is ok.

Its gradient color.

Please give me some solution.
Posted
Updated 25-Aug-11 18:07pm
v4

1 solution

try this instead:
C#
myPane.Chart.Fill = new Fill(this.BackColor);
myPane.Fill = new Fill(this.BackColor);
 
Share this answer
 
Comments
udusat13 27-Aug-11 0:58am    
thankssssssssssssssssssssssssssssss
its working for me

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900