請問一下各位神人
我用 windows form 畫圖表
X 目前就是按照 1 , 2 , 3 .... 一直到資料結束,也就是看我迴圈大小 (for-loop)
但是我想改變 X 軸上的顯示
我不想要 X 軸 顯示 1,2,3.. 我想要改顯示字串 (string) type
請問要怎麼call
目前我只知道
this.chart1.Series["percent"].XvalueType =
System.Windows.Forms.DataVisualization.Charting.ChartValueType.String;
我用上述命令把 X 軸 型態改為 string
但是接下來我不知道怎麼把我 array內的東西放入 X 軸
嘗試
for x = 0 to count
this.chart1.Series["percent"].Points[x].Label = array[x]
似乎都不是 Label Name 之類別
求神人解惑!!