SurfaceGridSeries3D customize representation when Y scale is

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
Felix
Posts: 72
Joined: Tue Oct 29, 2013 8:10 am

SurfaceGridSeries3D customize representation when Y scale is

Post by Felix » Mon Nov 18, 2013 2:41 pm

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? :?:
Chart
Chart
Chart.PNG (158.08 KiB) Viewed 13726 times

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: SurfaceGridSeries3D customize representation when Y scal

Post by ArctionPasi » Mon Nov 18, 2013 8:00 pm

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).
LightningChart Support Team, PT

Felix
Posts: 72
Joined: Tue Oct 29, 2013 8:10 am

Re: SurfaceGridSeries3D customize representation when Y scal

Post by Felix » Tue Nov 19, 2013 6:58 am

Hi Pasi,

Solution 2 I was looking for.
Thank you. :D

Felix
Posts: 72
Joined: Tue Oct 29, 2013 8:10 am

Re: SurfaceGridSeries3D customize representation when Y scal

Post by Felix » Tue Nov 26, 2013 9:12 am

Hello Pasi,

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;
Why?
Chart with contour lines
Chart with contour lines
Chart.PNG (121.83 KiB) Viewed 13698 times
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;
}

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: SurfaceGridSeries3D customize representation when Y scal

Post by ArctionPasi » Thu Dec 05, 2013 2:32 pm

3D clipping can clip only lines of width = 1.

Set ContourLineWidth = 1.
LightningChart Support Team, PT

Post Reply