Browse Source

Fix legend position with x axis label - #72

pull/80/head
Masayuki Tanaka 11 years ago
parent
commit
a880a2f8ea
  1. 4
      c3.js
  2. 2
      c3.min.js

4
c3.js

@ -267,7 +267,7 @@
margin = { margin = {
top: __axis_rotated && __axis_y2_show ? 20 : 0, top: __axis_rotated && __axis_y2_show ? 20 : 0,
right: getCurrentPaddingRight(), right: getCurrentPaddingRight(),
bottom: 20 + (__axis_rotated ? 0 : __subchart_size_height) + (isLegendRight ? getLegendPaddingTop() : legendHeight), bottom: 20 + (__axis_rotated ? 0 : __subchart_size_height) + getLegendPaddingTop() + (isLegendRight ? 0 : legendHeight),
left: (__axis_rotated ? __subchart_size_height + rotated_padding_right : 0) + getCurrentPaddingLeft() left: (__axis_rotated ? __subchart_size_height + rotated_padding_right : 0) + getCurrentPaddingLeft()
}; };
width = currentWidth - margin.left - margin.right; width = currentWidth - margin.left - margin.right;
@ -285,7 +285,7 @@
// for legend // for legend
margin3 = { margin3 = {
top: isLegendRight ? margin.top : currentHeight + getLegendPaddingTop() - legendHeight, top: isLegendRight ? margin.top : currentHeight - legendHeight,
right: NaN, right: NaN,
bottom: 0, bottom: 0,
left: isLegendRight ? currentWidth - legendWidth : 0 left: isLegendRight ? currentWidth - legendWidth : 0

2
c3.min.js vendored

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