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.
Essential JS2

Syncfusion jQuery based widgets are no longer in active development. Switch to our pure JavaScript based next generation Essential JS 2 library.

Syncfusion Feedback

How to bind remote data to Chart?

Platform: jQuery |
Control: ejChart |
.NET Framework: 4.5 |
Product Version:

Essential Chart supports remote data binding that is binding data in the server with chart, using Essential DataManager. Refer Data Manager for information about using Essential DataManager for JavaScript.

The data manager object should be assigned to the dataSource property of series. The properties xName and yName of the series should be assigned to the fields in data source representing the x and y values of the series respectively. The query property of the series should be assigned to a query object for querying the data returned by the data manager.

The following code example demonstrates binding Chart to oData service.


<script type="text/javascript">
$(function () {          
    //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);
        series: [{
            //Assigning data manager as data source to chart
            dataSource: dataManger,
            xName: "ShipCity",
            yName: "Freight",
            query: query ,


The output for the above code example binding chart with oData service is as follows:

Binding remote data to Chart

Figure 1: Output

JS Playground sample link: Remote data

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