gpt4 book ai didi

c# - 如何在极坐标 Mschart 上移动 Y 轴的原点?

转载 作者:太空宇宙 更新时间:2023-11-03 11:20:49 25 4
gpt4 key购买 nike

我正在使用 mschart 制作极坐标图,我需要在图表中间打一个“洞”。我的意思是,我需要 Y 轴的“0”不在中心。我在 stackoverflow 的某个地方看到了这个情节。这正是我需要的,我该怎么做?

enter image description here

最佳答案

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

// 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;

关于c# - 如何在极坐标 Mschart 上移动 Y 轴的原点?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11083881/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com