All,
In the line chart, if the Y data are all 1. the value of "Y" axis is also 1. Now, I want to make the value of "Y" axis is 1.3, so the line is not top of the chart.
One more another question, how can I make Chart's backgroud color to be white? Default is gray color
Thanks,
Amy
How to make value "Y" axis to be 30% higher than Y
Hi.
You can (for example) check if all values are the same and then according to this info, manually rescale axis. Something along these lines:Now, I want to make the value of "Y" axis is 1.3, so the line is not top of the chart.
Code: Select all
if (line1.YValues.Maximum == line1.YValues.Minimum)
{
double center = line1.YValues.Minimum;
line1.GetVertAxis.SetMinMax(0.7*center,1.3*center);
line1.GetVertAxis.AdjustMaxMin();
}
else line1.GetVertAxis.Automatic = true;
backgroud color to be white
Code: Select all
tChart1.Panel.Brush.Color = Color.White;
Marjan Slatinek,
http://www.steema.com
http://www.steema.com