4
我想在我的圖表(使用System.Web.Helpers)上將間隔設置爲1(在mvc3 .net c#中)。 我無法找到圖表屬性來設置時間間隔,以便x/yValues顯示所有標籤。 這裏的代碼:在圖表中設置時間間隔.net mvc3
Chart key = new Chart(width: 600, height: 400)
.AddSeries(
chartType: "bar",
legend: "Rainfall",
xValue: xVal, //new[] { "Jan", "Feb", "Mar", "Apr", "May" },
yValues: yVal
) //new[] { "20", "20", "40", "30", "10" })
.AddTitle("Chart Success Rate")
.Write("png");
任何幫助將不勝感激。
謝謝。