RadChart 中如何一个图表中的两个不同值的轴保持同一起点?

来源:互联网 发布:nicelabel se软件下载 编辑:程序博客网 时间:2024/06/05 22:57
 

 转自:http://www.telerik.com/community/forums/silverlight/chart/how-to-line-up-multi-y-axis-0-level.aspx

 

 RadChart

 

 

Sample:

If we want to make the below chart to align two axis zero at same level, we’ve to set “AutoRange” to “false” and manual calculate the Range of each axis.

 

RadChart1.DefaultView.ChartArea.AxisY.AutoRange = false;
RadChart1.DefaultView.ChartArea.AdditionalYAxes[0].AutoRange = false;
RadChart1.DefaultView.ChartArea.AxisY.AddRange(-10, 35, 5);
RadChart1.DefaultView.ChartArea.AdditionalYAxes[0].AddRange(-400, 1400, 200);

 

原创粉丝点击