DevExtreme jQuery/JS - Call Methods
To call a widget method, pass its name to the jQuery plugin.
JavaScript
- var allSeries = $("#chartContainer").dxChart("getAllSeries");
If a method accepts arguments, pass them right after the method's name.
JavaScript
- var fruitsSeries = $("#chartContainer").dxChart("getSeriesByName", "fruits");
As an alternative, you can obtain the widget instance first, and then call any method of this instance.
JavaScript
- var chartInstance =$("#chartContainer").dxChart("instance");
- var allSeries = chartInstance.getAllSeries();
- var fruitsSeries = chartInstance.getSeriesByName("fruits");
See Also
Feel free to share topic-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Thank you for the feedback!
If you have technical questions, please create a support ticket in the DevExpress Support Center.