|
|
@ -2260,7 +2260,7 @@ |
|
|
|
// Y-Grid
|
|
|
|
// Y-Grid
|
|
|
|
if (withY && __grid_y_show) { |
|
|
|
if (withY && __grid_y_show) { |
|
|
|
ygrid = main.select('.ygrids').selectAll(".ygrid") |
|
|
|
ygrid = main.select('.ygrids').selectAll(".ygrid") |
|
|
|
.data(y.ticks(10)); |
|
|
|
.data(y.ticks(__grid_y_lines)); |
|
|
|
ygrid.enter().append('line') |
|
|
|
ygrid.enter().append('line') |
|
|
|
.attr('class', 'ygrid'); |
|
|
|
.attr('class', 'ygrid'); |
|
|
|
ygrid.attr("x1", __axis_rotated ? y : 0) |
|
|
|
ygrid.attr("x1", __axis_rotated ? y : 0) |
|
|
@ -2299,7 +2299,7 @@ |
|
|
|
mainBar.exit().transition().duration(durationForExit) |
|
|
|
mainBar.exit().transition().duration(durationForExit) |
|
|
|
.style('opacity', 0) |
|
|
|
.style('opacity', 0) |
|
|
|
.remove(); |
|
|
|
.remove(); |
|
|
|
|
|
|
|
|
|
|
|
mainText = main.selectAll('.-texts').selectAll('.-text') |
|
|
|
mainText = main.selectAll('.-texts').selectAll('.-text') |
|
|
|
.data(barOrLineData); |
|
|
|
.data(barOrLineData); |
|
|
|
mainText.enter().append('text') |
|
|
|
mainText.enter().append('text') |
|
|
@ -2746,7 +2746,7 @@ |
|
|
|
.transition().duration(100) |
|
|
|
.transition().duration(100) |
|
|
|
.style('opacity', 1); |
|
|
|
.style('opacity', 1); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function updateLegend(targets, options) { |
|
|
|
function updateLegend(targets, options) { |
|
|
|
var ids = getTargetIds(targets), l; |
|
|
|
var ids = getTargetIds(targets), l; |
|
|
|
var xForLegend, xForLegendText, xForLegendRect, yForLegend, yForLegendText, yForLegendRect; |
|
|
|
var xForLegend, xForLegendText, xForLegendRect, yForLegend, yForLegendText, yForLegendRect; |
|
|
|