我使用Kendo Chart,以前工作没问题
但是现在不显示图表,仅以文本显示内容
<div class="chart-wrapper">
@(Html.Kendo().Chart()
.Name("chart")
.Title("Site Visitors Stats /thousands/")
.Legend(legend => legend
.Position(ChartLegendPosition.Bottom))
.SeriesDefaults(seriesDefaults => seriesDefaults
.Column().Stack(true))
.Series(series =>
{
series.Column(new double[] { 56000, 63000, 74000, 91000, 117000, 138000 }).Name("Total Visits");
series.Column(new double[] { 52000, 34000, 23000, 48000, 67000, 83000 }).Name("Unique visitors");
})
.CategoryAxis(axis => axis
.Categories("Jan", "Feb", "Mar", "Apr", "May", "Jun")
.MajorGridLines(lines => lines.Visible(false)))
.ValueAxis(axis => axis
.Numeric()
.Line(line => line.Visible(false)))
.Tooltip(tooltip => tooltip
.Visible(true)
.Format("{0}")))
</div>