Kendo UI line chart with dynamic data

Viewed 32

I am trying to create Kendo UI Line chart with dynamic json data. But the chart is not coming.

How to fix this issue?

jsonImage

function createChart(datas) {
        $("#chart").kendoChart({
            title: {
                text: ""
            },
          dataSource: new kendo.data.DataSource({
            data: datas
          }),
            legend: {
                visible: true
            },
            seriesDefaults: {
                type: "line",
                stack: true
            },
            series: [{
                name: "Type",
                data: "Count",
            }],
            valueAxis: {
                line: {
                    visible: false
                },
                minorGridLines: {
                    visible: true
                }
            },
            categoryAxis: {
                categories: Category,
                majorGridLines: {
                    visible: false
                }
            },
            tooltip: {
                visible: true,
                template: "#= series.name #: #= value #"
            }
        });
    }
0 Answers
Related