2012-06-18 112 views

回答

2

爲了創建雷達圖,看起來像提供的示例

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

非常感謝。 你知道他是如何設法使刻度線與時間間隔相匹配的,並且從那個位置的0開始? – WillKraemer

+1

將'AxisY.MajorTickMark'設置爲與'AxisY.MajorGrid'完全一致以獲得匹配的刻度。 – zeFrenchy