Hi Claudio,
Thanks for using Syncfusion products.
We are able to reproduce the issue “CandleSegment stroke not updated while replacing the data”, the fix for this issue will be available in our Vol 2 SP1 release, which will be available on end of June, 2018. However, we can resolve this issue by extending CandleSeries and overriding CreateSegments method as follows. We have modified your sample based on this, please find the sample from the following location.
Code snippet [XAML]:
| <sf:SfChart> <local:CustomCandleSeries ItemsSource="{Binding Candles}" XBindingPath="Date" ComparisonMode="None" High="High" Open="Open" Close="Close" Low="Low" BullFillColor="Green" BearFillColor="Red" /> </sf:SfChart> |
Code snippet [C#]:
| public class CustomCandleSeries : CandleSeries { public override void CreateSegments() { base.CreateSegments(); foreach (CandleSegment segment in Segments) { foreach (Shape item in (segment.GetRenderedVisual() as Panel).Children) { item.Stroke = segment.ActualStroke; } } } } |
Please let us know if you have any queries.
Thanks,
Muneesh Kumar G.