kendo ui - KendoUI charts with Asp.net MVC - Stack Overflow

PHOTO EMBED

Fri Jan 28 2022 22:54:28 GMT+0000 (Coordinated Universal Time)

Saved by @raajeshn #cs

<div class="chart-wrapper">
@(Html.Kendo().Chart<ChartExample.Models.ChartModel>()
    .Name("chart")
    .Title("Example Column Chart")
    .Legend(legend => legend
        .Position(ChartLegendPosition.Top)
    )
    .DataSource(ds => ds.Read(read => read.Action("GetChartData", "Charts")))
    .Series(series => {
        series.Column(model => model.Val2).Name("Val2");
        series.Column(model => model.Val3).Name("Val3");
    })
    .CategoryAxis(axis => axis
        .Categories(model => model.Year)
        .Labels(labels => labels.Rotation(-90))
    )
    .ValueAxis(axis => axis.Numeric()
        .Labels(labels => labels.Format("{0:N0}"))
        .MajorUnit(10000)
    )
) 
</div>
content_copyCOPY

https://stackoverflow.com/questions/11885183/kendoui-charts-with-asp-net-mvc