kendo ui chart example

kendo ui chart example





Code Sample for HTML 5

<div class="panel panel-primary">
    <div class="panel-heading">
        <h3 class="panel-title lg-11">Data Usage<a href="#"><i class="fa fa-refresh pull-right"></i></a> </h3>
    </div>
    <div class="panel-body">
        <div class="row">
              <div id="dataChart"></div>
        </div>
    </div>
</div>


Code Sample for jQuery

<script type="text/javascript">
    function dataUsageChart() {
        var dataSource = [2000, 4000, 3000, 7000, 10000, 11000, 14000, 14000, 12000, 20000];
        var category = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];

        $("#dataChart").kendoChart({
            legend: {
                position: "right"
            },
            chartArea: {
                height: 200,
                width: 520
            },
            seriesDefaults: {
                type: "line",
                style: "smooth"
            },
            series: [{
                name: "Data",
                data: dataSource
            }],
            valueAxis: {
                labels: {
                    format: "{0} MB"
                    //font: "16px Verdana"
                },
                line: {
                    visible: true
                },
                axisCrossingValue: -10
            },
            categoryAxis: {
                categories: category,
                majorGridLines: {
                    visible: true
                }
            },
            tooltip: {
                visible: true,
                format: "{0}%",
                template: "#= series.name #: #= value #"
            }
        });
    }

    $(document).ready(function () {
        dataUsageChart();
    });
    $(document).bind("kendo:skinChange", dataUsageChart);
</script>


It might help you
http://www.telerik.com/aspnet-mvc/charts

ANIL SINGH

Anil Singh is an author, tech blogger, and software programmer. Book writing, tech blogging is something do extra and Anil love doing it. For more detail, kindly refer to this link..

My Tech Blog - https://www.code-sample.com/
My Books - Book 1 and Book 2

kendo ui chart example kendo ui chart example Reviewed by Anil Singh on 8:21 PM Rating: (5)
www.code-sample.com/. Powered by Blogger.
^