0
我需要顯示所有軸標籤的點。例如,我在每個系列中有兩個系列和一個點:在系列1中:[1,3] [axis_label1];在系列2中:[1,5] [axis_label2]。我需要在x軸座標1下顯示axis_label1和axil_label2。但是默認情況下,圖表只顯示axis_label1。如何在所有系列中顯示點的所有軸標籤
我填圖是這樣的:
chart4.Series.Clear();
chart4.Series.Add("****");
chart4.Series.Add("****");
chart4.ChartAreas[0].CursorX.IsUserEnabled = true;
chart4.ChartAreas[0].CursorX.IsUserSelectionEnabled = true;
chart4.ChartAreas[0].AxisX.Interval = 1;
for (int i = 0; i < alphabet.Length; i++)
{
DataPoint dp = new DataPoint();
dp.AxisLabel = alphabet[i].ToString(); // first label of point
dp.YValues = new double[] { OTFreq[i] };
chart4.Series[0].Points.Add(dp);
DataPoint dp1 = new DataPoint();
dp1.AxisLabel = alphabet[i].ToString()+"_"; // second label of point
dp1.YValues = new double[] { CTFreq[i] };
chart4.Series[1].Points.Add(dp1);
}
我圖:
_ | |_ _ | | | _| | | | | | | | | | | | | | --|-------|--------- A B
我需要圖表:
_ | |_ _ | | | _| | | | | | | | | | | | | | --|-------|--------- A A_ B B_
[強制所有軸標籤顯示]的可能重複(https://stackoverflow.com/questions/7566996/force-all-axis-labels-to-show) – Necvetanov 2017-08-21 14:57:40