SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!
Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.
I am having troubles getting the DateTimeAxis to work as I intend. This is how I am defining it:
DateTimeAxis AutoRange="True" GrowBy="0.05, 0.05" ContentStringFormat="H:mm"
I am having several issues at the moment:
1. The axis labels are displaying seconds even though I specifically said Hours and Minutes.
2. The AutoRange options is not working 100%. Everytime a new entry is added to the dataseries it expands the chart to include the new data, but it is ignoring the GrowBy 0.05 setting. Basically, it expands the chart to covert all the data, but there is no extra 5% space on the sides of the chart.
3. I am getting some weird behaviors from the ChartModifiers on this Axis too.
I am using a regular SciChartSurface with one FastCandlestickRenderableSeries as the dataset.
Any idea what the problem could be?
Thanks for the inquiry! You should use TextFormatting, SubDayTextFormatting to specify how you want the labels to be formatted. Notice that SubDayTextFormatting is used if there is 1 day or less in a viewport.
Regarding AutoRange with DateTimeAxis, it seems to be working as expected, so if a new data comes, chart is expanded and GrowBy is applied. To reproduce, we modified a bit the Bind SciChart to data example, replaced XAxis by DateTimeAxis and applying 0.05 GrowBy. Could I ask you to help us reproduce your issue by posting here small example project, or the steps how we need to modify any of existing examples to reproduce the issue?
Could you give more explanation(or maybe post some screenshots) of which behavior is desired and what unexpected you find when modifiers are used with the DateTimeAxis? Your help is highly appreciated!
Please login first to submit.