Hi,
I am using the DateTimeContinuousAxis to manage a chart with a CandlestickSeries and a RangeBarSeries. However there is a visual "bug", the candles stroke is not always centered on the candlestick, the gap is not always equal between the bars and the candle doesn't seem to be always centered over the tick. Please see my attached image.
// horizontal axis
<tchart:RadCartesianChart.HorizontalAxis>
<tchart:DateTimeContinuousAxis MaximumTicks="5" PlotStretch="Uniform"
PlotMode="OnTicks" GapLength="0.3" FontSize="11" LastLabelVisibility="Visible" Visibility="Visible"/>
</tchart:RadCartesianChart.HorizontalAxis>
// first serie
<tchart:CandlestickSeries x:Name="candleStickSeriesA" ItemsSource="{Binding}" ClipToPlotArea="False" ZIndex="10"
tchart:ChartTrackBallBehavior.TrackInfoTemplate="{StaticResource EmptyTemplate}">
// second serie
<tchart:RangeBarSeries x:Name="candleVolumeSeriesA" ItemsSource="{Binding}" ZIndex="1"
tchart:ChartTrackBallBehavior.TrackInfoTemplate="{StaticResource EmptyTemplate}">
My guess is that this is in relation with the zoom level, probably the space cannot be divided perfectly by the candle space / gap or something like that.
I need to use the DateTimeContinuousAxis because it's the only DateTime axis that allows for a constant max number of labels. I really think this feature should be available on all Axis types..
Anyway to fix this? Maybe an adaptive GapLength would be a good feature to add, unless I am missing something.
Thank you!
I understand this is an expected behavior, however I don't know any financial / charting software (TradingView, etc) that doesn't have an auto-resizing implementation that resizes the candles equally, center the wicks and leave an equal gap on both side of the bar. I am not sure neither how they do it, maybe they limit the zoom scales to numbers that can be divided equally for resizing the candles. I'll probably try to re-create some simple projects showing the different issues I have encountered during my project when this is over here. For now, the GUI part is hopefully complete in my software and I will only be able to come back to this after everything is complete!.. Thanks for you understanding!!
Have a great day