Skip to content

Commit

Permalink
d3 upgrade axis
Browse files Browse the repository at this point in the history
  • Loading branch information
PieterGit committed Oct 18, 2019
1 parent 3445eee commit 06a8a92
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/report_plugins/calibrations.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,12 @@ calibrations.report = function report_calibrations (datastorage, sorteddaystosho
yScale2 = d3.scaleLinear()
.domain([0, 400000]);

var xAxis2 = d3.svg.axis()
var xAxis2 = d3.svg.axisBottom()
.scale(xScale2)
.ticks(10)
.orient('bottom');
.ticks(10);

var yAxis2 = d3.svg.axis()
.scale(yScale2)
.orient('left');
var yAxis2 = d3.svg.axisLeft()
.scale(yScale2);

// get current data range
var dataRange = [0, maxBG];
Expand Down

0 comments on commit 06a8a92

Please sign in to comment.