This is a migrated thread and some comments may be shown as answers.

CandleStick. Not displayed (not drawn) changes within the candles.

1 Answer 65 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Гоша
Top achievements
Rank 1
Гоша asked on 08 Apr 2016, 09:56 AM

I can not understand how to solve the following problem: There is real-time chart of Security.

<
<telerik:RadCartesianChart x:Name="chart" Grid.Column="0"    >
                <telerik:RadCartesianChart.Grid>
                    <telerik:CartesianChartGrid MajorLinesVisibility="Y"/>
                </telerik:RadCartesianChart.Grid>
 
 
                <telerik:RadCartesianChart.Behaviors>
                    <telerik:ChartCrosshairBehavior/>
                    <telerik:ChartPanAndZoomBehavior DragToZoomThreshold="0" MouseWheelMode="Zoom" DragMode="Pan" ZoomMode="Both" PanMode="Both"/>
                </telerik:RadCartesianChart.Behaviors>
 
                <telerik:RadCartesianChart.HorizontalAxis>
                    <telerik:DateTimeContinuousAxis x:Name="AxisX"  LabelFormat="HH:mm" LabelFitMode="Rotate" SmartLabelsMode="SmartStep" PlotMode="OnTicksPadded"  />
                </telerik:RadCartesianChart.HorizontalAxis>
 
                <telerik:RadCartesianChart.VerticalAxis>
                    <telerik:LinearAxis MajorStep="1" LineThickness="1" SmartLabelsMode="SmartStepAndRange" />
                </telerik:RadCartesianChart.VerticalAxis>
 
               <telerik:CandlestickSeries  ItemsSource="{Binding Candls}" CategoryBinding="Time" CloseBinding="Close" HighBinding="High" LowBinding="Low" OpenBinding="Open" DefaultVisualStyle="{DynamicResource #CandleStickStyle}" />
 </telerik:RadCartesianChart>

public ObservableCollectionEx<Candle> Candls = new ObservableCollectionEx<Candle>();

 

New candles appear immediately. Change the "Close" is not displayed in the candle when changes occur between the extreme values of the "Close". in a stream of data received and the change correctly. This can be seen on the grid.

 I tried to delete data from the collection of the last candle and insert new data, not to make changes to existing ones. The result remained the same :(

How can I display all the changes in the closing candle?

 

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 12 Apr 2016, 09:26 AM
Hello Gosha,

Without your implementation I cannot be sure what is causing this behavior. However, you can check if the view model of the data points implements the INotifyPropertyChanged interface and if the PropertyChanged event is raised in the property setters. This will ensure that the changes in the view model are reflected in the UI.

Regards,
Martin
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
Chart
Asked by
Гоша
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or