function createAxisLabels(axis) {
    // Only ordinal scale support tick interval
    return axis.type === 'category'
        ? makeCategoryLabels(axis)
        : makeRealNumberLabels(axis);
}
Calculate interval for category axis ticks and labels.
To get precise result, at least one of `getRotate` and `isHorizontal`
should be implemented in axis.