Browse Source

Fix sub x axis clip when rotated

pull/104/head
Masayuki Tanaka 11 years ago
parent
commit
715b1f9e99
  1. 4
      c3.js
  2. 4
      c3.min.js

4
c3.js

@ -331,7 +331,7 @@
//-- Sizes --// //-- Sizes --//
// TODO: configurabale // TODO: configurabale
var rotated_padding_left = 40, rotated_padding_right = 20, rotated_padding_top = 5; var rotated_padding_left = 30, rotated_padding_right = 30, rotated_padding_top = 5;
function updateSizes() { function updateSizes() {
currentWidth = getCurrentWidth(); currentWidth = getCurrentWidth();
@ -2373,7 +2373,7 @@
context.append("g") context.append("g")
.attr("class", CLASS.axisX) .attr("class", CLASS.axisX)
.attr("transform", translate.subx) .attr("transform", translate.subx)
.attr("clip-path", __axis_rotated ? getClipPath("yaxis-clip") : ""); .attr("clip-path", __axis_rotated ? "" : getClipPath("xaxis-clip"));
} }
// Set targets // Set targets

4
c3.min.js vendored

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