@@ -821,7 +821,6 @@ axes.calcTicks = function calcTicks(ax) {
821821 }
822822
823823 // If same angle over a full circle, the last tick vals is a duplicate.
824- //
825824 // TODO must do something similar for angular date axes.
826825 if ( ax . _id === 'angular' && Math . abs ( rng [ 1 ] - rng [ 0 ] ) === 360 ) {
827826 vals . pop ( ) ;
@@ -895,9 +894,7 @@ var roundBase10 = [2, 5, 10],
895894 // these don't have to be exact, just close enough to round to the right value
896895 roundLog1 = [ - 0.046 , 0 , 0.301 , 0.477 , 0.602 , 0.699 , 0.778 , 0.845 , 0.903 , 0.954 , 1 ] ,
897896 roundLog2 = [ - 0.301 , 0 , 0.301 , 0.699 , 1 ] ,
898- // TODO
899- // maybe [1, 2, 5, 10, 15, 30, 45, 90, 180] would give better results
900- // on thin polar sectors?
897+ // N.B. `thetaunit; 'radians' angular axes must be converted to degrees
901898 roundAngles = [ 15 , 30 , 45 , 90 , 180 ] ;
902899
903900function roundDTick ( roughDTick , base , roundingSet ) {
@@ -995,7 +992,7 @@ axes.autoTicks = function(ax, roughDTick) {
995992 }
996993 else if ( ax . _id === 'angular' ) {
997994 ax . tick0 = 0 ;
998- base = getBase ( 1 ) ;
995+ base = 1 ;
999996 ax . dtick = roundDTick ( roughDTick , base , roundAngles ) ;
1000997 }
1001998 else {
0 commit comments