Skip to content

Commit

Permalink
changed y axis by taking out .nice in scale so no gap appears
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinGOSSES committed May 5, 2020
1 parent 696140d commit 9397d3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ putIncomingSparseJsonIntoPlottingTemplate: function (incoming_sparse,template){
}

//////////////////// define y scale, aka the one for the depth ////////////////////
let y = d3.scaleLinear().domain([depth_max, depth_min]).nice().range([height - margin.bottom,margin.top])
let y = d3.scaleLinear().domain([depth_max, depth_min]).range([height - margin.bottom,margin.top])
//let yAxis = g => g.attr("transform", `translate(${margin.left},0)`).call(d3.axisLeft(y)).call(g => g.select(".domain").remove())
let yAxis = g => g.attr("transform", `translate(${margin.left},0)`).call(d3.axisLeft(y)).call(g => g.select(".domain"))
let yAxis2 = g => g.attr("transform", `translate(${margin.left-35},0)`).call(d3.axisLeft(y)).call(g => g.select(".domain"))
Expand Down

0 comments on commit 9397d3f

Please sign in to comment.