X 轴标签在 MVC4 条形图中重叠。任何解决它的想法。提前致谢。
@(Html.Kendo().Chart<McAfee.CBRMS.CodeAnalysisReport.BL.Utility.ModuleViewModel>()
.Name("StaticAnalysisOverAllBarGraph")
.DataSource(dataSource => dataSource
.Read(read => read.Action("GetStaticAnalysisOverAllBarGraph", "Home",new { filepath = ViewData["filePath"], jobId = ViewData["jobId"]}))
)
.Series(series => {
series.Column(model => model.CriticalErrors).Name("Critical Errors").Color("DarkRed");
series.Column(model => model.Errors).Name("Errors").Color("Red");
series.Column(model => model.CriticalWarning).Name("Critical Warning").Color("Orange");
series.Column(model => model.Warning).Name("Warnings").Color("Yellow");
})
.ValueAxis(axis => axis.Numeric()
.Labels(labels => labels.Rotation(5)
.Format("{0}")
)
)
.CategoryAxis(axis => axis
.Categories(model => model.Name)
)
.Tooltip(tooltip => tooltip
.Visible(true)
.Format("{0}")
)
)