I want my X-axis to be at the bottom of the graph but when why data is set to zero then it comes to the center of Y-axis? How do I prevent it from going to the center??
let x = d3.scaleBand().rangeRound([0, width]).padding(1),
y = d3.scaleLinear().range([height, 0])
x.domain(data.map(function (d) { return d.timescale; }));
y.domain([0, d3.max(trends, function (c) {
return d3.max(c.values, function (v) {
return v.total;
});
})]);