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 Blogs - https://code-sample.com and https://code-sample.xyz
My Book1 - BEST SELLING ANGULAR BOOK (INCLUDING ALL VERSIONS 2, 4, 5, 6, 7)
My Book2 - ANGULAR 2 INTERVIEW QUESTIONS BOOK - Both Books are Available on WorldWide.

www.code-sample.com/. Powered by Blogger.