Browse Source

Add c3-axis class to the axes - #210

pull/264/head
Masayuki Tanaka 11 years ago
parent
commit
dcd707f9ab
  1. 7
      c3.js
  2. 4
      c3.min.js

7
c3.js

@ -61,6 +61,7 @@
ygrids: 'c3-ygrids',
ygridLine: 'c3-ygrid-line',
ygridLines: 'c3-ygrid-lines',
axis: 'c3-axis',
axisX: 'c3-axis-x',
axisXLabel: 'c3-axis-x-label',
axisY: 'c3-axis-y',
@ -2855,7 +2856,7 @@
// Add Axis
axes.x = main.append("g")
.attr("class", CLASS.axisX)
.attr("class", CLASS.axis + ' ' + CLASS.axisX)
.attr("clip-path", clipPathForXAxis)
.attr("transform", translate.x)
.style("visibility", __axis_x_show ? 'visible' : 'hidden');
@ -2865,7 +2866,7 @@
.style("text-anchor", textAnchorForXAxisLabel);
axes.y = main.append("g")
.attr("class", CLASS.axisY)
.attr("class", CLASS.axis + ' ' + CLASS.axisY)
.attr("clip-path", clipPathForYAxis)
.attr("transform", translate.y)
.style("visibility", __axis_y_show ? 'visible' : 'hidden');
@ -2875,7 +2876,7 @@
.style("text-anchor", textAnchorForYAxisLabel);
axes.y2 = main.append("g")
.attr("class", CLASS.axisY2)
.attr("class", CLASS.axis + ' ' + CLASS.axisY2)
// clip-path?
.attr("transform", translate.y2)
.style("visibility", __axis_y2_show ? 'visible' : 'hidden');

4
c3.min.js vendored

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