if(max >= 100 && step % 10 != 0) {
max = Math.ceil(step / 10) * 10 * bottomAxisStep;
}
+ else if(max >= 50 && step % 5 != 0) {
+ max = Math.ceil(step / 5) * 5 * bottomAxisStep;
+ }
// if(max >= 20 && stepWidth % 2 != 0) {
// stepWidth = Math.ceil(stepWidth / 2) * 2;
// max = stepWidth * bottomAxisStep;
// }
- // if(max >= 50 && stepWidth % 5 != 0) {
- // stepWidth = Math.ceil(stepWidth / 5) * 5;
- // max = stepWidth * bottomAxisStep;
- // }
-
// background
paper.rect(0, 0, width, height).attr({ stroke: "none", fill: background });