Hello,
I have created a graphic 3D where I want to put some solid objects (square/rectangle with a width, height and depth).
I have got it with the code:
AreaSeries m_Area1;
m_Area1 = (AreaSeries)m_Chart.Series.Add(SeriesType.Area);
m_Area1.MultiAreaMode = MultiAreaMode.Series;
m_Area1.DataLabels.Mode = DataLabelsMode.None;
m_Area1.Name = “Area 1”;
m_Area1.AreaFillEffect.SetSolidColor(Color.OliveDrab);
m_Area1.AreaBorder.Color = Color.OliveDrab;
m_Area1.UseXValues = true;
m_Area1.XValues.Add(4);
m_Area1.AddXY(1, 10);
m_Area1.DepthPercent = 90;
m_Area1.Values.Add(3);
This code draws an area (square) with x=4 until x=10;
y from 0 until 1 and then from y=1 until y=3 there is a bent flat. I would like a solid figure (rectangle), but I do not know how I can get it…
The other problem is that I do not know how I can fix the z position, because the figure it is now in the middle more or less, but I would like for example to fix if from z=3 until z=5 and I was
looking for some attributes like ZValues, but there is not any unfortunately
Does someone know how I can solve it?
Thank you very much!
Regards!
Imported from legacy forums. Posted by Juan (had 2102 views)