如何在极地Mschart上移动Y轴的原点? [英] How to displace the origin of the Y axis on a polar Mschart?

查看:67
本文介绍了如何在极地Mschart上移动Y轴的原点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用mschart制作极坐标图,我需要在图表的中间做一个洞".我的意思是,我需要Y轴的"0"不在中心.我在stackoverflow的某处看到了该图.正是我所需要的,我该怎么办?

Im working on a polar chart with mschart, and I need to make this "hole" on the middle of the chart. I mean, i need the "0" of the Y axis not to be on the center. I saw this plot somewhere on stackoverflow. It´s exactly what i need, how can I do that?

推荐答案

为了创建看起来像所提供示例的雷达图

In order to create a radar plot that look like the provided example

// disable grid a long X
chart1.ChartAreas[0].AxisX.MajorGrid.Enabled = false;
chart1.ChartAreas[0].AxisX.MajorTickMark.Enabled = false;

// set Y axis
chart1.ChartAreas[0].AxisY.Minimum = -20;  // creates the 'hole' by setting min Y
chart1.ChartAreas[0].AxisY.MajorGrid.IntervalOffset = 20; // so the major grid does not fill the 'hole'
chart1.ChartAreas[0].AxisY.MajorGrid.Interval = 5;
chart1.ChartAreas[0].AxisY.MajorGrid.LineDashStyle = ChartDashStyle.Dash;

这篇关于如何在极地Mschart上移动Y轴的原点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆