Kendo Charts (Area Charts) display wrong data

2 posts, 0 answers
  1. parag
    parag avatar
    3 posts
    Member since:
    Apr 2016

    Posted 20 Apr Link to this post

    Hi, I was using the Kendo Chart for one of my projects and drawing charts for visualizing the data. 

    I have the following Kendo code to render the data given in this "message-rate-details.json" file. 

    The file

     

     

          var messageRateData = new kendo.data.DataSource({
                    transport: {
                        read: {
                            url: "content/shared/message-rate-details.json",
                            dataType: "json"
                        }
                    },
                    sort: {
            field: "timestamp",
            dir: "asc"
            },
            group: {
                        field: "strategyId"
                    }
                });
     
    $("#chart10").kendoChart({
                dataSource: messageRateData,
                title: {
                    text: "Message Rate Details in 10 min interval"
                },
                legend: {
                    position: "top"
                },
        series: [{
                            type: "area",
                stack: true,
                field: "count",
                name: "StrategyId #= group.value #"
                        }],
        valueAxis: {
                    labels: {
                        format: "{0}"
                    },
                    line: {
                        visible: false
                    }
                },
         categoryAxis: {
                    field: "timestamp",
            type: "date",
            labels: {
                        format: "hh:mm:ss"
                        }
                },
                tooltip: {
                    visible: true,
                    format: "{0}"
        }
    });     

  2. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2593 posts

    Posted 22 Apr Link to this post

    Hi Parag,

    For some reason the message-rate-details.json file is missing - could you please zip and send it again? Also, could you elaborate on the particular issue which you encountered? Thank you in advance for your cooperation.

    Regards,
    Iliana Nikolova
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
Back to Top