Page 1 of 1
Help lines for X and Y scale in 3D
Posted: Wed Nov 09, 2011 4:02 pm
by 16060157
Is there any way to get some grid help lines for the Y and X axis in 3D mode?
It is hard to read the actual value
See attached picture (where values are 10,10 & 18,18 for both series)
Re: Help lines for X and Y scale in 3D
Posted: Thu Nov 10, 2011 10:18 am
by 10050769
Hello BeijerElectronics,
I recommend you use MinorGrid Axes property. You can do something as next code:
Code: Select all
private void InitializeChart()
{
Steema.TeeChart.Styles.Points Series1= new Points(tChart1.Chart);
Steema.TeeChart.Styles.Points Series2 = new Points(tChart1.Chart);
Series1.Add(10, 10);
Series1.Add(18, 18);
Series2.DataSource = Series1;
Series2.RefreshSeries();
tChart1.Axes.Bottom.SetMinMax(10, 100);
tChart1.Axes.Left.SetMinMax(10, 100);
tChart1.Axes.Bottom.MinorGrid.Visible = true;
tChart1.Axes.Left.MinorGrid.Visible = true;
}
Can you please, tell us if previous code works as you want?
I hope will helps.
Thanks,
Re: Help lines for X and Y scale in 3D
Posted: Thu Nov 10, 2011 2:00 pm
by 16060157
Hello Sandra,
Thank you for a quick reply.
No, we do not want to have minor grids visible, but 3D lines for the major grid. See the picture below:
Re: Help lines for X and Y scale in 3D
Posted: Fri Nov 11, 2011 7:57 am
by 10050769
Hello
I couldn't reproduce your problem with last version of TeeChart 2011 and next code:
Code: Select all
private void InitializeChart()
{
Steema.TeeChart.Styles.Points points1 = new Points(tChart1.Chart);
Steema.TeeChart.Styles.Points points2 = new Points(tChart1.Chart);
points1.Add(10, 10);
points1.Add(18, 18);
points2.DataSource = points1;
tChart1.Axes.Bottom.SetMinMax(0, 100);
tChart1.Axes.Left.SetMinMax(0, 100);
}
Please, can you tell us which version of TeeChart.Net are you using now?
Thanks,
Re: Help lines for X and Y scale in 3D
Posted: Wed Nov 16, 2011 10:30 am
by 16060157
Hi,
We use the latest release version, but I see now that they are there, but the lines are almost impossible to see since we use a grid color set as white, and white lines on the yellow 3D surface makes it almost impossible to see. Is there a seperate color setting for the 3D grid lines, so that we still can use white as the major grid line color?
Re: Help lines for X and Y scale in 3D
Posted: Thu Nov 17, 2011 3:23 pm
by 10050769
Hello
I think you can set the minor grid of a color and Grid of other color. You can do something as next code:
Code: Select all
private void InitializeChart()
{
Steema.TeeChart.Styles.Points Series1 = new Points(tChart1.Chart);
Steema.TeeChart.Styles.Points Series2 = new Points(tChart1.Chart);
Series1.Add(10, 10);
Series1.Add(18, 18);
Series2.DataSource = Series1;
Series2.RefreshSeries();
tChart1.Axes.Bottom.SetMinMax(10, 100);
tChart1.Axes.Left.SetMinMax(10, 100);
tChart1.Axes.Bottom.MinorGrid.Visible = true;
tChart1.Axes.Left.MinorGrid.Visible = true;
tChart1.Axes.Left.Grid.Color = Color.White;
tChart1.Axes.Left.MinorGrid.Color = Color.Gray;
tChart1.Axes.Bottom.Grid.Color = Color.White;
tChart1.Axes.Bottom.MinorGrid.Color = Color.Gray;
tChart1.Walls.Back.Gradient.Visible=false;
tChart1.Walls.Back.Transparency = 100;
tChart1.Panel.Color= Color.Black;
tChart1.Panel.Gradient.Visible = false;
}
Can you tell us if previous code works as you expected?
I hope will helps.
Thanks,