Skip to content

Commit

Permalink
Merge pull request Mikhus#95 from Mikhus/revert-92-fix-ticks
Browse files Browse the repository at this point in the history
Revert "Calculate angle for major ticks based on actual values"
  • Loading branch information
Mikhus authored Dec 24, 2016
2 parents a20fa65 + 150e926 commit 36b9c6b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/RadialGauge.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,7 @@ function drawRadialMajorTicks(context, options) {

/* istanbul ignore next: private, not testable */
function radialNextAngle(options, i, s) {
let max = options.maxValue;
let currentTick = options.majorTicks[i];
return options.startAngle + options.ticksAngle / max * currentTick;
return options.startAngle + i * (options.ticksAngle / (s - 1));
}

/* istanbul ignore next: private, not testable */
Expand Down

0 comments on commit 36b9c6b

Please sign in to comment.