Browse Source

Fix class for ygrid lines

pull/302/head
Masayuki Tanaka 11 years ago
parent
commit
c81f5a2955
  1. 4
      c3.js
  2. 2
      c3.min.js
  3. 2
      htdocs/samples/grid_y_lines.html

4
c3.js

@ -3587,7 +3587,7 @@
.data(__grid_x_lines);
// enter
xgridLine = xgridLines.enter().append('g')
.attr("class", function (d) { return CLASS.xgridLine + (d['class'] ? ' ' + d['class'] : ''); });
.attr("class", function (d) { return CLASS.xgridLine + (d.class ? ' ' + d.class : ''); });
xgridLine.append('line')
.style("opacity", 0);
xgridLine.append('text')
@ -3620,7 +3620,7 @@
.data(__grid_y_lines);
// enter
ygridLine = ygridLines.enter().append('g')
.attr("class", function (d) { return CLASS.ygridLine + (d.class ? d.class : ''); });
.attr("class", function (d) { return CLASS.ygridLine + (d.class ? ' ' + d.class : ''); });
ygridLine.append('line')
.style("opacity", 0);
ygridLine.append('text')

2
c3.min.js vendored

File diff suppressed because one or more lines are too long

2
htdocs/samples/grid_y_lines.html

@ -34,7 +34,7 @@
}, 2000);
setTimeout(function () {
chart.ygrids.add([{value: 230, text:'Label 230'}]);
chart.ygrids.add([{value: 230, text:'Label 230', class: 'hoge'}]);
}, 3000);
setTimeout(function () {

Loading…
Cancel
Save