Hi jettaime,
The labels in your chart are at y = 0, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4. Your code probably has asked ChartDirector to round the numbers to integers (use no decimal place), so the labels become 0, 1, 1, 2, 2, 3, 3, 4.
If your intention is to create an y-axis with integer ticks only, please use Axis.setMinTickInc. For example:
//at least 1 unit between two ticks
c->yAxis()->setMinTickInc(1);
Hope this can help.
Regards
Peter Kwan |