剑道图未显示

时间:2019-01-09 10:41:47

标签: charts kendo-ui telerik

我使用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>

0 个答案:

没有答案