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.

Fixed width candle series

Thread ID:

Created:

Updated:

Platform:

Replies:

124946 Jul 9,2016 12:45 PM Jul 19,2016 12:57 AM WPF 5
loading
Tags: Chart
ron
Asked On July 9, 2016 12:45 PM

When the size of the SfChart is changed, the items (in this case, candles) are also resized. Is there a way to make the width of the candles static so they do not change when resizing the SfChart. Basically, can I force the candles to always be X pixels wide?


Devi Aruna Maharasi Murugan [Syncfusion]
Replied On July 12, 2016 09:24 AM

Hi Ron, 
  
Thanks for contacting Syncfusion Support. 
  
We are able to achieve the fixed candle segment width by setting the Width property for SfChart.   
  
Code example: 
[XAML] 
 
<chart:SfChart  Width="700" > 
 
  
  
In addition to this, we are able to adjust the spacing of candle segments as like below code example. 
Code example: 
[XAML] 
 
   <chart:CandleSeries x:Name="candleSeries" chart:ChartSeriesBase.Spacing="0" > 
 
  
  
Regards, 
Devi 


ron
Replied On July 14, 2016 03:42 PM

Hi Devi,

I don't actually want to fix the width of the chart, only the candles within it. As an example, if the chart is initially 500px wide and the candles within the chart are 50px wide, then I would expect to see 10 candles. If I then start to increase the width of the chart, I would expect more candles to appear, but I would still expect all the candles to still be 50px wide.

Hope that makes sense.

Ron.


Devi Aruna Maharasi Murugan [Syncfusion]
Replied On July 18, 2016 12:10 PM

Hi Ron, 
  
Thanks for your update. 
  
We have achieved your requirement in workaround. Please download the sample from below link, 
  
  
Regards, 
Devi 




ron
Replied On July 18, 2016 04:05 PM

Hi Devi,

Thanks for the info. I now have enough information to achieve what I wanted to achieve.

Ron.


Devi Aruna Maharasi Murugan [Syncfusion]
Replied On July 19, 2016 12:57 AM

Hi Ron, 
 
Thanks for your update. 
 
Please contact us, if you need any further assistance. 
 
Regards, 
Devi 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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.

;