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 

 

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