Hello,
in my line line chart I have a few hundreds data points. The label values shown for the X-axis are dates. I show only labels for the first data point of every quarter (beginning of January, April, July, ...).
Here's the code for that which is embedded in a data point loop:
Unfortunately "something" is shown even for the empty ChartAxisItem entries. That results in a horizontal white bar which runs right through my labels.
If you know what might cause this behavior or how to implement the above in a better way please let me know.
And how can I show major grid lines in the same selective way?
Thanks and kind regards,
Gerald
in my line line chart I have a few hundreds data points. The label values shown for the X-axis are dates. I show only labels for the first data point of every quarter (beginning of January, April, July, ...).
Here's the code for that which is embedded in a data point loop:
ChartAxisItem chartAxisItem; |
if (entry.QuotesDate.Month % 3 == 1 && entry.QuotesDate.Month != oldMonth) |
{ |
chartAxisItem = new ChartAxisItem(entry.QuotesDate.Date.ToString("yyyy-MM")); |
oldMonth = entry.QuotesDate.Month; |
} |
else |
{ |
chartAxisItem = new ChartAxisItem(); |
} |
_gideonChart.PlotArea.XAxis.AddItem(chartAxisItem); |
_gideonChart.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = 270; |
Unfortunately "something" is shown even for the empty ChartAxisItem entries. That results in a horizontal white bar which runs right through my labels.
If you know what might cause this behavior or how to implement the above in a better way please let me know.
And how can I show major grid lines in the same selective way?
Thanks and kind regards,
Gerald