Commit c81f5a29 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix class for ygrid lines

parent 44aef009
...@@ -3587,7 +3587,7 @@ ...@@ -3587,7 +3587,7 @@
.data(__grid_x_lines); .data(__grid_x_lines);
// enter // enter
xgridLine = xgridLines.enter().append('g') 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') xgridLine.append('line')
.style("opacity", 0); .style("opacity", 0);
xgridLine.append('text') xgridLine.append('text')
...@@ -3620,7 +3620,7 @@ ...@@ -3620,7 +3620,7 @@
.data(__grid_y_lines); .data(__grid_y_lines);
// enter // enter
ygridLine = ygridLines.enter().append('g') 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') ygridLine.append('line')
.style("opacity", 0); .style("opacity", 0);
ygridLine.append('text') ygridLine.append('text')
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
}, 2000); }, 2000);
setTimeout(function () { setTimeout(function () {
chart.ygrids.add([{value: 230, text:'Label 230'}]); chart.ygrids.add([{value: 230, text:'Label 230', class: 'hoge'}]);
}, 3000); }, 3000);
setTimeout(function () { setTimeout(function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment