Menu

#58 Draw tick label in Log scale

Next Release
open
nobody
None
5
2016-05-12
2016-05-12
ke-st
No

Hi, when we use log scale and have numbers that doesn't cross any major log tick, there's no labels plotted at all.
Patch 1 draw number on first/last minor tick label if none other is drawn.

path-1. AxisTickLabels.updateTickVisibility()

In end of method:

if(axis.isLogScaleEnabled()) {
    boolean isAnyVisible = false;
    for(int i = 0; i < tickLabelPositions.size(); i++) {
        if(tickVisibilities.get(i)) {
            isAnyVisible = true;
            break;
        }
    }
    if(!isAnyVisible && tickVisibilities.size() > 0) {
        tickVisibilities.set(0, Boolean.TRUE);
        tickVisibilities.set(tickVisibilities.size() - 1, Boolean.TRUE);
    }
}

Discussion

MongoDB Logo MongoDB