I do not seem to be able to have a scrolling Date/Time axis show seconds (or anything except hh:mm) regardless of what values I use for TextFormatting and SubDayTextFormatting.
Everything else works/displays as expected
My X axis XAML looks like:
<SciChart:CategoryDateTimeAxis TextFormatting=”MM/dd/yy” GrowBy=”0.1,0.1″ SubDayTextFormatting=”hh:mm:ss” AutoRange=”True” />
Many Thanks for your help
.NET 4.5, Win 7 SP1, VS2012
Yes you are absolutely right. You can gain complete control over the Axis Text Labels by using the LabelProvider. Full details in the article Specifying Text Labels with ILabelProvider
You have also highlighted a bug – the CategoryDateTimeAxis seems to be ignoring the TextFormatting/SubDayTextFormatting. The logic for other axes is 1.) obey TextFormatting first (an older API) then 2.) use LabelFormatter if one exists.
BTW the purpose of SubDayTextFormatting is to return a different string format when the visible range is intraday (in stock charts), e.g. as you zoom, it switches from dd MMM yyyy to HH:mm.
May I ask – why you prefer CategoryDateTimeAxis over DateTimeAxis? The DateTimeAxis uses value calculations to position points in the X-direction. The CategoryDateTimeAxis treats each data-point as equidistant (regardless of X-Value).
Please login first to submit.