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

Option Method

I noticed in the following example:
http://js.syncfusion.com/demos/web/#!/azure/chart/ChartCustomization/LegendPosition
that the 'option' method is being used to set the position of the legend. 

$("#container").ejChart("option", { "legend": legend(sender, sender.selectedText) });

The option method does not appear to be in the documentation for ejChart at http://help.syncfusion.com/UG/JS_CR/ejChart.html

Could you tell me what the 'option' method does, why it is not in the documentation and what other methods are available?

1 Reply

AB Akbar Basha K M Syncfusion Team October 17, 2014 12:35 PM UTC

Hi Josh,
Thanks for using syncfusion product. We have analyzed your requirement,

Query #1: The option method does not appear to be in the documentation for ejChart

Response : We will be adding those methods in online documentation soon

Query #2: Could you tell me what the 'option' method does and what other methods are available?

Response:  The option method can be used to change properties of a chart dynamically after rendering, without creating an instance for chart.

redraw():

This method can be used to update the dynamic data without refresh the page we can add the data and change the any property using redraw method, with creating an instance of a chart.

Query #3:  why it is not in the documentation

Response: option method was used in all JS controls so we cannot add this method under chart. We will consider your request and update our documentation soon

We have prepared a simple sample based on redraw method. Please find the attached sample.

Please let us know if you have any concern.

Thanks,
Akbar Basha K M


Attachment: line_(2)_79da06e4.zip

Loader.
Live Chat Icon For mobile
Up arrow icon