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
close icon

Candle Template

I'm evaluating the WPF charting and would like to create a candle chart with a Red or Green fill depending on the open and close values.
This is common for a candle chart as your product information states:
The body of the candle is often colored under conditions where the open value is smaller than the closed value.

How you recommend I achieve this?
I'm attempting to set the series Template with data triggers





The User guide for Candle Chart lists a set of parameters which can be used while setting template e.g. Interior.
Could you give me an example of a template for the Candle chart type?


1 Reply

PI Poorani Idhaya Bala M.A Syncfusion Team September 25, 2009 02:07 PM UTC

Hi,

Using data template you can achieve your requirements.

For instance,




StrokeThickness="{Binding StrokeThickness}" ToolTip="{Binding ToolTip}"/>



Please find the attached sample for more information.

Let us know if you have any questions.

Thanks for choosing Syncfusion Products.

Thanks,
Poorani






Candle Chart_1c1b25e5.zip

Loader.
Live Chat Icon For mobile
Up arrow icon