Hi,
I'm currenly using 3DGraph component to display a map.
But I have a problem, I would like to display the 3 axis (X, Y and Z) with a grid on each one.
here is my code :
LinearAxis xAxis1 = new LinearAxis(pTransform, ChartObj.X_AXIS);
xAxis1.SetAxisLimits(0, maxX);
xAxis1.SetAxisLimits(0, maxX);
xAxis1.SetColor(Color.White);
chartView1.AddChartObject(xAxis1);
LinearAxis xAxis2 = new LinearAxis(pTransform, ChartObj.X_AXIS);
xAxis2.SetLocation(new Point3D(0, maxY, 0));
xAxis2.SetAxisLimits(0, maxX);
xAxis2.SetColor(Color.White);
chartView1.AddChartObject(xAxis2);
LinearAxis xAxis3 = new LinearAxis(pTransform, ChartObj.X_AXIS);
xAxis3.SetLocation(new Point3D(maxX, 0, maxZ));
xAxis3.SetAxisLimits(0, maxX);
xAxis3.SetColor(Color.White);
chartView1.AddChartObject(xAxis3);
LinearAxis yAxis1 = new LinearAxis(pTransform, ChartObj.Y_AXIS);
yAxis1.SetAxisLimits(0, maxY);
yAxis1.SetColor(Color.White);
chartView1.AddChartObject(yAxis1);
LinearAxis yAxis2 = new LinearAxis(pTransform, ChartObj.Y_AXIS);
yAxis2.SetLocation(new Point3D(maxX, 0, 0));
yAxis2.SetAxisLimits(0, maxY);
yAxis2.SetColor(Color.White);
chartView1.AddChartObject(yAxis2);
LinearAxis yAxis3 = new LinearAxis(pTransform, ChartObj.Y_AXIS);
yAxis3.SetLocation(new Point3D(0, 0, maxZ));
yAxis3.SetAxisLimits(0, maxY);
yAxis3.SetColor(Color.White);
chartView1.AddChartObject(yAxis3);
LinearAxis zAxis1 = new LinearAxis(pTransform, ChartObj.Z_AXIS);
zAxis1.SetLocation(new Point3D(0, 0, 0));
zAxis1.SetAxisLimits(0, maxZ);
zAxis1.SetColor(Color.White);
chartView1.AddChartObject(zAxis1);
LinearAxis zAxis2 = new LinearAxis(pTransform, ChartObj.Z_AXIS);
zAxis2.SetLocation(new Point3D(0, maxY, 0));
zAxis2.SetAxisLimits(0, maxZ);
zAxis2.SetColor(Color.White);
chartView1.AddChartObject(zAxis2);
LinearAxis zAxis3 = new LinearAxis(pTransform, ChartObj.Z_AXIS);
zAxis3.SetLocation(new Point3D(maxX, 0, 0));
zAxis3.SetAxisLimits(0, maxZ);
zAxis3.SetColor(Color.White);
chartView1.AddChartObject(zAxis3);
//Display the grids
Grid xgrid1 = new Grid(xAxis1, yAxis1, ChartObj.X_AXIS, ChartObj.GRID_MAJOR);
xgrid1.SetColor(Color.White);
chartView1.AddChartObject(xgrid1);
Grid xgrid2 = new Grid(xAxis1, yAxis1, ChartObj.Y_AXIS, ChartObj.GRID_MAJOR);
xgrid2.SetColor(Color.White);
chartView1.AddChartObject(xgrid2);
Grid zgrid1 = new Grid(xAxis1, zAxis1, ChartObj.Z_AXIS, ChartObj.GRID_MAJOR);
zgrid1.SetColor(Color.White);
chartView1.AddChartObject(zgrid1);
Grid ygrid1 = new Grid(xAxis1, zAxis3, ChartObj.X_AXIS, ChartObj.GRID_MAJOR);
ygrid1.SetColor(Color.Purple);
chartView1.AddChartObject(ygrid1);
It's ok for the planes:
X/Y
X/Z
_________| z
_________|
_________|
________/_\
_______/___\
____y /_____\ x
But I don't arrive to put a grid on Y/Z plane (the left plane).
Do you have an idea to do this ?
Thanks !