I appreciate the addition of the Chart control in XOJO. I’m having trouble with label density in my chart. I’d like to have better control over which labels are drawn. See this intraday stock chart:
I only need labels every 15 minutes. I tried this: I only created a timestamp string for every 15th minute as I created my labels array. For the other times, I set the label to a blank string. Unfortunately, XOJO didn’t ignore the blank strings and is still used them with its label layout algorithm:
As you can see, it sometimes gets lucky and draws a non-empty label. Ideally, I’d like the chart to ignore any blank string label and skip drawing the corresponding axis line.
Can I achieve what I need—“sparse” labels? Such as those in Apple’s Stocks app, where the only labels in the intraday chart are the hours:
The Graph.XTick() property lets you define where along the x-axis you want your tick marks. And the Graph.XTickLabels() property lets you set the text you want to display at each tick mark.