Commit dcd707f9 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Add c3-axis class to the axes - #210

parent 5f100cb8
...@@ -61,6 +61,7 @@ ...@@ -61,6 +61,7 @@
ygrids: 'c3-ygrids', ygrids: 'c3-ygrids',
ygridLine: 'c3-ygrid-line', ygridLine: 'c3-ygrid-line',
ygridLines: 'c3-ygrid-lines', ygridLines: 'c3-ygrid-lines',
axis: 'c3-axis',
axisX: 'c3-axis-x', axisX: 'c3-axis-x',
axisXLabel: 'c3-axis-x-label', axisXLabel: 'c3-axis-x-label',
axisY: 'c3-axis-y', axisY: 'c3-axis-y',
...@@ -2855,7 +2856,7 @@ ...@@ -2855,7 +2856,7 @@
// Add Axis // Add Axis
axes.x = main.append("g") axes.x = main.append("g")
.attr("class", CLASS.axisX) .attr("class", CLASS.axis + ' ' + CLASS.axisX)
.attr("clip-path", clipPathForXAxis) .attr("clip-path", clipPathForXAxis)
.attr("transform", translate.x) .attr("transform", translate.x)
.style("visibility", __axis_x_show ? 'visible' : 'hidden'); .style("visibility", __axis_x_show ? 'visible' : 'hidden');
...@@ -2865,7 +2866,7 @@ ...@@ -2865,7 +2866,7 @@
.style("text-anchor", textAnchorForXAxisLabel); .style("text-anchor", textAnchorForXAxisLabel);
axes.y = main.append("g") axes.y = main.append("g")
.attr("class", CLASS.axisY) .attr("class", CLASS.axis + ' ' + CLASS.axisY)
.attr("clip-path", clipPathForYAxis) .attr("clip-path", clipPathForYAxis)
.attr("transform", translate.y) .attr("transform", translate.y)
.style("visibility", __axis_y_show ? 'visible' : 'hidden'); .style("visibility", __axis_y_show ? 'visible' : 'hidden');
...@@ -2875,7 +2876,7 @@ ...@@ -2875,7 +2876,7 @@
.style("text-anchor", textAnchorForYAxisLabel); .style("text-anchor", textAnchorForYAxisLabel);
axes.y2 = main.append("g") axes.y2 = main.append("g")
.attr("class", CLASS.axisY2) .attr("class", CLASS.axis + ' ' + CLASS.axisY2)
// clip-path? // clip-path?
.attr("transform", translate.y2) .attr("transform", translate.y2)
.style("visibility", __axis_y2_show ? 'visible' : 'hidden'); .style("visibility", __axis_y2_show ? 'visible' : 'hidden');
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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