2
我正在用mschart繪製極座標圖,我需要在圖表的中間做出這個「洞」。我的意思是,我需要Y軸的「0」不在中心。我在stackoverflow上看到了這個情節。這正是我需要的,我該怎麼做?如何在極座標Mschart上移動Y軸的原點?
我正在用mschart繪製極座標圖,我需要在圖表的中間做出這個「洞」。我的意思是,我需要Y軸的「0」不在中心。我在stackoverflow上看到了這個情節。這正是我需要的,我該怎麼做?如何在極座標Mschart上移動Y軸的原點?
爲了創建雷達圖,看起來像提供的示例
// 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;
非常感謝。 你知道他是如何設法使刻度線與時間間隔相匹配的,並且從那個位置的0開始? – WillKraemer
將'AxisY.MajorTickMark'設置爲與'AxisY.MajorGrid'完全一致以獲得匹配的刻度。 – zeFrenchy