相关疑难解决方法(0)

在图表.net mvc3中设置间隔

我想在mvc3 .net c#中将我的图表上的间隔设置为1(使用System.Web.Helpers).我无法找到图表属性来设置间隔,以便x/yValues显示所有标签.这里的代码:

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");
Run Code Online (Sandbox Code Playgroud)

任何帮助都会非常感激.

谢谢.

charts asp.net-mvc-3

4
推荐指数
1
解决办法
2826
查看次数

标签 统计

asp.net-mvc-3 ×1

charts ×1