We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to bind remote data to Chart?

Platform: ASP.NET Web Forms |
Control: Chart

Essential Chart supports remote data binding (binding data in server with chart) by using Essential JavaScript DataManager. Refer to the Data Manager for information about using Essential DataManager for JavaScript.

The data manager object is assigned to the dataSource property of chart series in client-side during chart load event. The properties xName and yName of the series are assigned to the fields in data source representing the x and y values of the series respectively. The property query of series is assigned to a query object for querying the data returned by data manager.

The following cod example explains how to bind Chart to oData service.


     <ej:Chart ID="container" OnClientLoad="ChartLoad" runat="server">       
            <ej:Series Name="Sales">               
    <script type="text/javascript">
        //Assigning URL to data manager
        var dataManger = new ej.DataManager({
            url: "http://mvc.syncfusion.com/Services/Northwnd.svc/"
        // Object to query the data retrieved by data manager
        var query = ej.Query().from("Orders").take(6);
        //Load event of chart
        function ChartLoad(sender) {
            var chart = sender;
            //Assigning data manager as data source to chart
            chart.model.series[0].dataSource = dataManger;
            chart.model.series[0].xName = "ShipCity";
            chart.model.series[0].yName = "Freight";
            chart.model.series[0].query = query;


The following screenshot displays the output for the above code example.

Binding remote data to Chart

You can refer to the online sample for remote data binding in the following link Remote Data

2X faster development

The ultimate ASP.NET Web Forms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile