SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & 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.
When the major grid lines are drawn with a delta equal to or greater than a month, the minor grid lines are no longer drawn between the major gridlines (with a DateTimeAxis).
I discovered this behavior in my own project, so I tried some demo projects of v3.6 and v4. In both versions the minor grid lines are no longer drawn between the major gridlines when the delta of the major grid line is equal to or greater than a month.
I added an screenshot of how the “Using Thememanager” demo of SciChart v4 draws the major and (misaligned) minor grid lines.
Is this a feature I’m not aware of or is this a bug?
This occurs because the ThemeManager example is using a CategoryDateTimeAxis, and the CategoryDateTimeAxis uses indices to data to place gridlines, labels and coordinates on the chart.
Given major gridlines falling on months January, February, March, there are 31, 28 and 31 days in these months.
Minor Delta always needs to be some ‘sane’ division of major, so next, SciChart chooses weeks (7-days). This means that minor gridlines fall on the 7th, 14th, 21st, 28th of January etc… Subsequent gridlines are drawn at week intervals so after 28th Jan is 4th Feb, 11th Feb etc.. These gridlines appear to be uneven (as they are spaced at week boundaries).
What you can do is override our tick generation with the TickProvider API. If you choose one of our TickProviders as a basis, you can inherit it and keep the major divisions but override just the minors. Let me know if you need any assistance with this.
Please login first to submit.