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

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

2 Answers 49 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
MALTES
Top achievements
Rank 1
MALTES asked on 16 Aug 2012, 07:52 PM
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 Answers, 1 is accepted

Sort by
0
MALTES
Top achievements
Rank 1
answered on 16 Aug 2012, 08:51 PM
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>
0
Nikolay
Telerik team
answered on 21 Aug 2012, 07:22 AM
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.

Tags
ChartView
Asked by
MALTES
Top achievements
Rank 1
Answers by
MALTES
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or