RadCartesianChart Candlestick : why not see on the graph when the stock markets are closed

3 posts, 0 answers
  1. MALTES
    MALTES avatar
    2 posts
    Member since:
    Feb 2012

    Posted 16 Aug 2012 Link to this post

    I use to display RadCartesianChart Candlestick for software exchange.

    when I board units on the X axis DateTimeContinuousAxis MajorStepUnit = "Hour" or minutes I would like to define the hours of closure of stock exchanges
      and for the weekend, so it does not appear on the graph as the data is empty periods for its

    Thanks.
  2. MALTES
    MALTES avatar
    2 posts
    Member since:
    Feb 2012

    Posted 16 Aug 2012 Link to this post

    I m found it necessary tu use :

                <chart:RadCartesianChart.HorizontalAxis>
                    <chartView:DateTimeCategoricalAxis DateTimeComponent="Minute" 
       Height="100"  
                        GapLength="{Binding GapLength}"
                        LabelInterval="1" PlotMode="OnTicksPadded" 
    LabelTemplate="{StaticResource axisLabelTemplate}"
                        >
                    </chartView:DateTimeCategoricalAxis>
                    <!-- and not use >>
                    <chartView:DateTimeContinuousAxis 
                        MajorStep="{Binding MajorStepAxis}"
                        MajorStepUnit="{Binding MajorStepUnit}"
       Height="100"   
                        GapLength="{Binding GapLength}"
                        LabelInterval="1" PlotMode="OnTicksPadded" 
    LabelTemplate="{StaticResource axisLabelTemplate}">
                    </chartView:DateTimeContinuousAxis>-->
                </chart:RadCartesianChart.HorizontalAxis>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Nikolay
    Admin
    Nikolay avatar
    385 posts

    Posted 21 Aug 2012 Link to this post

    Hi,

    In order to skip the periods where there is no data, such as weekends, you could either use the DateTimeCategorical axis, as you've mentioned in the second post, or use the EmptyValues feature. You can find an example and sample code here.

    All the best,
    Nikolay
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top