Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 99250

Problems rendering Candlestick series on DateTimeContinuousAxis

$
0
0

Dinko Hi!

Thanks for the answer. But the problem is elsewhere. Here is the code of the chart:

<telerik:RadCartesianChartx:Name="chartTelerik"  Grid.Row="0"   >
                <telerik:RadCartesianChart.Grid>
                    <telerik:CartesianChartGridMajorLinesVisibility="Y"/>
                </telerik:RadCartesianChart.Grid>
                <telerik:RadCartesianChart.Behaviors>
                    <telerik:ChartCrosshairBehavior/>
                    <telerik:ChartPanAndZoomBehaviorDragToZoomThreshold="0"MouseWheelMode="Zoom"DragMode="Pan"ZoomMode="Both"PanMode="Both"/>
                </telerik:RadCartesianChart.Behaviors>
                <telerik:RadCartesianChart.HorizontalAxis>
                    <telerik:DateTimeContinuousAxisx:Name="AxisX"  LabelFormat="HH:mm"LabelFitMode="Rotate"SmartLabelsMode="SmartStep"PlotMode="OnTicksPadded"   />
                </telerik:RadCartesianChart.HorizontalAxis>
                <telerik:RadCartesianChart.VerticalAxis>
                    <telerik:LinearAxisMajorStep="1"LineThickness="1"SmartLabelsMode="SmartStepAndRange"/>
                </telerik:RadCartesianChart.VerticalAxis>
                 
                <telerik:CandlestickSeriesx:Name="CandleSeries"CategoryBinding="Time"  CloseBinding="Close"HighBinding="High"LowBinding="Low"OpenBinding="Open"  DefaultVisualStyle="{DynamicResource #CandleStickStyle}"ItemsSource="{Binding Candls}"  />
                 
</telerik:RadCartesianChart>

Result Fig. 1 Note the properties GapLengtn value in the upper right corner. Image Graphics "spoil" immediately after the occurrence of a gap in the data set. Change the value GapLengnt hands at a value close to 1. And the chart is restored. Fig 2,3

How to make sure that this parameter is automatically recalculated?

 


Viewing all articles
Browse latest Browse all 99250

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>