Chart3DControl 之SurfaceSeriesView问题

在做项目的时候会遇到需要画三维图,因为想要3维图,所以Series3D.View设置为SurfaceSeriesView,但是,在实际项目中,发现所得到的图跟实际的点相差很大,以下就是界面上添加的点。

            PointsDCollection.Add(new Point3D(1, 1, 1));
            PointsDCollection.Add(new Point3D(1, 1, 2));
            PointsDCollection.Add(new Point3D(1, 1, 3));
            PointsDCollection.Add(new Point3D(1, 1, 4));
            PointsDCollection.Add(new Point3D(1, 1, 5));
            PointsDCollection.Add(new Point3D(1, 1, 6));
            PointsDCollection.Add(new Point3D(1, 1, 7));
            PointsDCollection.Add(new Point3D(1, 1, 8));
            PointsDCollection.Add(new Point3D(1, 1, 9));
            PointsDCollection.Add(new Point3D(2, 1, 1));
            PointsDCollection.Add(new Point3D(2, 1, 2));
            PointsDCollection.Add(new Point3D(2, 1, 3));
            PointsDCollection.Add(new Point3D(2, 1, 4));
            PointsDCollection.Add(new Point3D(2, 1, 5));
            PointsDCollection.Add(new Point3D(2, 1, 6));
            PointsDCollection.Add(new Point3D(2, 1, 7));
            PointsDCollection.Add(new Point3D(2, 1, 8));
            PointsDCollection.Add(new Point3D(2, 1, 9));
            PointsDCollection.Add(new Point3D(3, 1, 1));
            PointsDCollection.Add(new Point3D(3, 1, 2));
            PointsDCollection.Add(new Point3D(3, 1, 3));
            PointsDCollection.Add(new Point3D(3, 1, 4));
            PointsDCollection.Add(new Point3D(3, 1, 5));
            PointsDCollection.Add(new Point3D(3, 1, 6));
            PointsDCollection.Add(new Point3D(3, 1, 7));
            PointsDCollection.Add(new Point3D(3, 1, 8));
            PointsDCollection.Add(new Point3D(3, 1, 9));
            PointsDCollection.Add(new Point3D(4, 2, 1));
            PointsDCollection.Add(new Point3D(4, 2, 2));
            PointsDCollection.Add(new Point3D(4, 2, 3));
            PointsDCollection.Add(new Point3D(4, 2, 4));
            PointsDCollection.Add(new Point3D(4, 2, 5));
            PointsDCollection.Add(new Point3D(4, 2, 6));
            PointsDCollection.Add(new Point3D(4, 2, 7));
            PointsDCollection.Add(new Point3D(4, 2, 8));
            PointsDCollection.Add(new Point3D(4, 2, 9));

可以看到X,Y轴的区间没有问题,但是轴正确的区间应该是0-9,而界面上只显示0-4.8,数据被后台进行了处理,具体原因还未知,欢迎大佬指点。

当Series3D.View设置为Point3DSeriesView等到的图如下

很明显,以上显示的数据正常。

查了官方文件都没有查到具体原因,如果有遇到相识问题的朋友,欢迎指导。

Demo链接:https://pan.baidu.com/s/19LUzAVCOOZo3VFUs5MzFeA 
提取码:2vlc 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章