c# - How to set Spline chart 3d in .NET -
i using chart component of .net framework 4.5 in c#.
when fill component values not have same gap each other , set chartarea.area3dstyle.enable3d property true, there no impact on chart until equalize gaps between values in series.
datapoint datapoint1 = new datapoint(0d, 20d); datapoint datapoint2 = new datapoint(1d, 30d); datapoint datapoint3 = new datapoint(200d, 50d); datapoint datapoint4 = new datapoint(300d, 20d); datapoint datapoint5 = new datapoint(400d, 0d); datapoint datapoint6 = new datapoint(500d, 30d); datapoint datapoint7 = new datapoint(600d, 10d); datapoint datapoint8 = new datapoint(700d, 10d); series1.points.add(datapoint1); series1.points.add(datapoint2); series1.points.add(datapoint3); series1.points.add(datapoint4); series1.points.add(datapoint5); series1.points.add(datapoint6); series1.points.add(datapoint7); series1.points.add(datapoint8); chartarea1.area3dstyle.enable3d = true;
you can set various parameters here. 1 directly makes automtic downscaling large x-values pointdepth
chartarea1.area3dstyle.enable3d = true; chartarea1.area3dstyle.pointdepth = 999; // pick value
the best way explore many wonders of chart
control play in designer. when have found setting can go yourform.designer.cs
file , @ generated code; while not advised fool around valuable resource many obscure settings..
unfortunately maximum pointdepth
1000 , x-values larger 300-500 3d-effect still rather weak. maybe can downscale values?
Comments
Post a Comment