SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

0
0

Hello,

I have a list in wich I have another 3 sublists (values for XAxis, values for YAxis, values for ZAxis: x[i] and y[i] and z[i] are the coordinates for a point). With these values I want to create a SurfaceMeshRenderableSeries3D, but what I tried it doesn’t work.
Can you help me with some code?
Thank you!

Here is what I tried:

      int xSize = ListOfPoints.Count;
        int zSize = ListOfPoints.Count;

        var xSteppings = new double[xSize];
        var zSteppings = new double[zSize];

        for (int i = 0; i < xSize; i++)
        {
            xSteppings[i] = ListOfPoints.ElementAt(i).XValue;
            zSteppings[i] = ListOfPoints.ElementAt(i).ZValue;
        }

        var dataSeries = new NonUniformGridDataSeries3D<double>(xSize, zSize, xIndex => xSteppings[xIndex], zIndex => zSteppings[zIndex])


        for (int xi = 0; xi < xSize; xi++)
        {
            for (int zi = 0; zi < zSize; zi++)
            {
                dataSeries[zi, xi] = ListOfPoints.ElementAt(zi).YValue;
            }
        }
        DataSource_SurfaceMesh.DataSeries = dataSeries;
Version
v6
  • You must to post comments
0
0

Hi there,

Thanks for your inquiry. I am sorry for the late reply.
You can use the dataSeries.Append method to add your data to the Series. Please take a look at the “Declare a FastLineRenderableSeries in Pure Code” section of the following documentation for more info:
https://www.scichart.com/documentation/win/current/webframe.html#The%20Line%20Series%20Type.html

Hope this helps.

With best regards,
Oleksandr

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.