Browse Source

Fixing syntax of JS (to ensure that it compiles in travis)

pull/38/head
Luís A. Bastião Silva 11 years ago
parent
commit
d9ca0836a2
  1. 6
      c3.js

6
c3.js

@ -1543,7 +1543,7 @@
// Add Axis // Add Axis
main.append("g") main.append("g")
.attr("class", "x axis") .attr("class", "x axis")
.attr("clip-path", __axis_rotated ? "" : "url("+document.URL+"#xaxis-clip)") .attr("clip-path", __axis_rotated ? "" : "url(" + document.URL + "#xaxis-clip)")
.attr("transform", translate.x) .attr("transform", translate.x)
.call(__axis_rotated ? yAxis : xAxis) .call(__axis_rotated ? yAxis : xAxis)
.append("text") .append("text")
@ -1554,7 +1554,7 @@
.text(__axis_x_label); .text(__axis_x_label);
main.append("g") main.append("g")
.attr("class", "y axis") .attr("class", "y axis")
.attr("clip-path", __axis_rotated ? "url("+document.URL+"#yaxis-clip)" : "") .attr("clip-path", __axis_rotated ? "url(" + document.URL + "#yaxis-clip)" : "")
.call(__axis_rotated ? xAxis : yAxis) .call(__axis_rotated ? xAxis : yAxis)
.append("text") .append("text")
.attr("transform", "rotate(-90)") .attr("transform", "rotate(-90)")
@ -1707,7 +1707,7 @@
context.append("g") context.append("g")
.attr("class", "x axis") .attr("class", "x axis")
.attr("transform", translate.subx) .attr("transform", translate.subx)
.attr("clip-path", __axis_rotated ? "url("+document.URL+"#yaxis-clip)" : "") .attr("clip-path", __axis_rotated ? "url(" + document.URL + "#yaxis-clip)" : "")
.call(subXAxis); .call(subXAxis);
} }

Loading…
Cancel
Save