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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to use ejChart with angular JS?

Essential Chart supports two-way binding by using angular JS plugin. All the properties in the chart can be bound with HTML elements. Essential Chart requires the JavaScript file ej.widget.angular.min.js to support angular JavaScript. Refer to Common Angular Binding for more information on using angular JS with Essential JavaScript controls.

Required scripts

The CDN link for the scripts required is shown in the following table:

 

The following code example illustrates the use of Essential Chart with angular JS. Note that it is mandatory to use the module, ejangular, and the directive, ej-chart, for rendering the Essential Chart because the directive, ej-chart, is used to render the Chart inside the container and this directive is present only in the ejangular module.

All the properties in the Chart can be bound with another control by using angular JS. The property name should be prefixed with e- to support one-way or two-way bindings; otherwise, the angular binding does not work on that property.

JS

 

Sample Links:

For using Essential Chart with angular JS: Angular Binding

 

The following screenshot shows different properties in the Chart bound with HTML text box by using Angular JS:

Figure: Chart bounded with HTML controls using angular JS

 

JS Playground sample link: Angular binding

Article ID: Published Date: Last Revised Date: Platform: Control:
4879 05/14/2015 08/11/2015 JavaScript ejChart
Did you find this information helpful?
Comments
Matthias Max Dec 07, 2015
This info is just useless without data binding !
Reply
Add Comment
You must log in to leave a comment

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