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



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;
  • You must to post comments

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:

Hope this helps.

With best regards,

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.