Browse Source

Add y lines option for grid

pull/55/head
David van Leeuwen 11 years ago
parent
commit
3e508c56ba
  1. 6
      c3.js
  2. 98
      c3.min.js

6
c3.js

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

98
c3.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save