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

Candle Chart.

I'd like to know if there is a way to bind the properties of points of the Candle Chart to properties of DataSource.
I have seen in the past that in the Builder there are XName and YName but nothing related to High, Low, Open and Close properties that are in the point.
For that type of chart do I need to add the points manually?

    Thanks in advance

    Andrea Perazzolo

3 Replies

SK Sanjith Kesavan Syncfusion Team November 28, 2015 09:33 AM UTC

Hi Andrea Perazzolo

Thanks for contacting Syncfusion support. We have analyzed your query. It is possible to bind the datasource for the candle chart. Please find the following code example.

In the controller we have created the list and passed that list to the view page using the Viewbag. In the view page we have bound this data to the chart. Please find the below code example

For binding the datasource to the candle chart please use the XName,High, Low, Open and Close builder values. Now the chart will render as per the data we are passing from the controller. Please find the below screenshot.

We have prepared the sample as per your requirement. Please find the sample from below location.
Sample Link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Candle167224762-1659380972.zip

Please let us know if you have any concern.

Sanjith K.

AP Andrea Perazzolo December 1, 2015 01:09 PM UTC

Thanks for the Help.
Just one question.
I have noticed that when I use the DataSource and not the Points HTML Helper in the series, the Marker helper is not defined and gives me Compilation errors.
It works correctly if I use the Points and define all the points.
is it correct?
I am using the version of the controls.

     Thanks in advance

    Andrea Perazzolo

BK Bharathiraja K Syncfusion Team December 7, 2015 11:36 AM UTC

Hi Andrea,

Thanks for your update.

We have analyzed your query (“The Marker helper is not defined and gives me Compilation errors on using data source in the series”) and checked with simple sample using datasource and markers in the series. But we couldn’t reproduce the above reported issue and the sample is working fine. Please find the code snippet.





                .Series(sr =>


                    //Adding Candle series


                       .Marker(mr => mr














So could you please share your code snippet or sample which will be helpful on resolving the issue and provide you the solution.


Let us know if you have any other concerns on this.




Live Chat Icon For mobile
Up arrow icon