@@ -821,7 +821,6 @@ axes.calcTicks = function calcTicks(ax) {
821
821
}
822
822
823
823
// If same angle over a full circle, the last tick vals is a duplicate.
824
- //
825
824
// TODO must do something similar for angular date axes.
826
825
if ( ax . _id === 'angular' && Math . abs ( rng [ 1 ] - rng [ 0 ] ) === 360 ) {
827
826
vals . pop ( ) ;
@@ -895,9 +894,7 @@ var roundBase10 = [2, 5, 10],
895
894
// these don't have to be exact, just close enough to round to the right value
896
895
roundLog1 = [ - 0.046 , 0 , 0.301 , 0.477 , 0.602 , 0.699 , 0.778 , 0.845 , 0.903 , 0.954 , 1 ] ,
897
896
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
901
898
roundAngles = [ 15 , 30 , 45 , 90 , 180 ] ;
902
899
903
900
function roundDTick ( roughDTick , base , roundingSet ) {
@@ -995,7 +992,7 @@ axes.autoTicks = function(ax, roughDTick) {
995
992
}
996
993
else if ( ax . _id === 'angular' ) {
997
994
ax . tick0 = 0 ;
998
- base = getBase ( 1 ) ;
995
+ base = 1 ;
999
996
ax . dtick = roundDTick ( roughDTick , base , roundAngles ) ;
1000
997
}
1001
998
else {
0 commit comments