Hi Pasi,
I want to do in my "SurfaceGridSeries3D" chart, the Y axis by the user changeable. But if I change the Y axis, the representation of the object does not fit, as can be seen below the image.
Why the whole object is shown and not only the range of the Y axis?
SurfaceGridSeries3D customize representation when Y scale is
Moderator: Queue Moderators
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: SurfaceGridSeries3D customize representation when Y scal
It seems you haven't set enough range in the ContourPalette of the grid series, that's why it shows with pale color.
Solution 1: Add more range than 200.
Solution 2: Set chart.View3D.ClipContents = true, and it will make a sharp cut on Y axis maximum (and in other places where the data doesn't fit the axis ranges).
Solution 1: Add more range than 200.
Solution 2: Set chart.View3D.ClipContents = true, and it will make a sharp cut on Y axis maximum (and in other places where the data doesn't fit the axis ranges).
LightningChart Support Team, PT
Re: SurfaceGridSeries3D customize representation when Y scal
Hi Pasi,
Solution 2 I was looking for.
Thank you.
Solution 2 I was looking for.
Thank you.
Re: SurfaceGridSeries3D customize representation when Y scal
Hello Pasi,
the solution 2 works great with the object, but when I display contour lines are not this cut.
Why?
The contour lines are created in a new SurfaceGridSeries3D object.
the solution 2 works great with the object, but when I display contour lines are not this cut.
Code: Select all
chart.View3D.ClipContents = true;
The contour lines are created in a new SurfaceGridSeries3D object.
Code: Select all
private SurfaceGridSeries3D CreateLimitsConturLineSurfaceGrid(SurfacePoint[,] data)
{
SurfaceGridSeries3D surfaceGrid = new SurfaceGridSeries3D(lcuChart.View3D, Axis3DBinding.Primary, Axis3DBinding.Primary, Axis3DBinding.Primary);
surfaceGrid.Title.ShowInLegendBox = false;
surfaceGrid.SetRangesXZ(_xAxisCoordinates.Min<double>(), _xAxisCoordinates.Max<double>(), _yAxisCoordinates.Min<double>(), _yAxisCoordinates.Max<double>());
surfaceGrid.SetSize(data.GetLength(0), data.GetLength(1));
surfaceGrid.Data = data;
surfaceGrid.InvalidateData();
surfaceGrid.MouseInteraction = false;
surfaceGrid.WireframeType = SurfaceWireframeType.None;
surfaceGrid.Fill = SurfaceFillStyle.None;
surfaceGrid.ContourPalette = GetColorPaletteForConturLines(new ValueRangePalette(surfaceGrid), _limitMin, _limitMax);
surfaceGrid.ContourLineType = ContourLineType.PalettedLine;
surfaceGrid.ContourLineWidth = _contourLineSize;
return surfaceGrid;
}
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: SurfaceGridSeries3D customize representation when Y scal
3D clipping can clip only lines of width = 1.
Set ContourLineWidth = 1.
Set ContourLineWidth = 1.
LightningChart Support Team, PT