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

2 posts, 0 answers
  1. Gosha
    Gosha avatar
    9 posts
    Member since:
    Aug 2010

    Posted 08 Apr Link to this post

    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:CartesianChartGrid MajorLinesVisibility="Y"/>
                        <telerik:ChartPanAndZoomBehavior DragToZoomThreshold="0" MouseWheelMode="Zoom" DragMode="Pan" ZoomMode="Both" PanMode="Both"/>
                        <telerik:DateTimeContinuousAxis x:Name="AxisX"  LabelFormat="HH:mm" LabelFitMode="Rotate" SmartLabelsMode="SmartStep" PlotMode="OnTicksPadded"  />
                        <telerik:LinearAxis MajorStep="1" LineThickness="1" SmartLabelsMode="SmartStepAndRange" />
                   <telerik:CandlestickSeries  ItemsSource="{Binding Candls}" CategoryBinding="Time" CloseBinding="Close" HighBinding="High" LowBinding="Low" OpenBinding="Open" DefaultVisualStyle="{DynamicResource #CandleStickStyle}" />

    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?


  2. Martin
    Martin avatar
    1042 posts

    Posted 12 Apr Link to this post

    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.

    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
Back to Top