|
|
|
@ -333,15 +333,15 @@
|
|
|
|
|
|
|
|
|
|
// for main
|
|
|
|
|
$$.margin = config.axis_rotated ? { |
|
|
|
|
top: $$.getHorizontalAxisHeight('y2') + $$.getCurrentPaddingTop(), |
|
|
|
|
right: hasArc ? 0 : $$.getCurrentPaddingRight(), |
|
|
|
|
bottom: $$.getHorizontalAxisHeight('y') + legendHeightForBottom + $$.getCurrentPaddingBottom(), |
|
|
|
|
left: subchartHeight + (hasArc ? 0 : $$.getCurrentPaddingLeft()) |
|
|
|
|
top: config.margin_top ? config.margin.top : $$.getHorizontalAxisHeight('y2') + $$.getCurrentPaddingTop(), |
|
|
|
|
right: hasArc ? 0 : config.margin_right ? config.margin_right : $$.getCurrentPaddingRight(), |
|
|
|
|
bottom: config.margin_bottom ? config.margin_bottom : $$.getHorizontalAxisHeight('y') + legendHeightForBottom + $$.getCurrentPaddingBottom(), |
|
|
|
|
left: subchartHeight + (hasArc ? 0 : config.margin_left ? config.margin_left : $$.getCurrentPaddingLeft()) |
|
|
|
|
} : { |
|
|
|
|
top: 4 + $$.getCurrentPaddingTop(), // for top tick text
|
|
|
|
|
right: hasArc ? 0 : $$.getCurrentPaddingRight(), |
|
|
|
|
bottom: xAxisHeight + subchartHeight + legendHeightForBottom + $$.getCurrentPaddingBottom(), |
|
|
|
|
left: hasArc ? 0 : $$.getCurrentPaddingLeft() |
|
|
|
|
top: 4 + config.margin_top ? config.margin.top : $$.getCurrentPaddingTop(), // for top tick text
|
|
|
|
|
right: hasArc ? 0 : config.margin_right ? config.margin_right : $$.getCurrentPaddingRight(), |
|
|
|
|
bottom: config.margin_bottom ? config.margin_bottom : xAxisHeight + subchartHeight + legendHeightForBottom + $$.getCurrentPaddingBottom(), |
|
|
|
|
left: hasArc ? 0 : config.margin_left ? config.margin_left : $$.getCurrentPaddingLeft() |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// for subchart
|
|
|
|
@ -886,6 +886,10 @@
|
|
|
|
|
padding_right: undefined, |
|
|
|
|
padding_top: undefined, |
|
|
|
|
padding_bottom: undefined, |
|
|
|
|
margin_left: undefined, |
|
|
|
|
margin_right: undefined, |
|
|
|
|
margin_top: undefined, |
|
|
|
|
margin_bottom: undefined, |
|
|
|
|
zoom_enabled: false, |
|
|
|
|
zoom_extent: undefined, |
|
|
|
|
zoom_privileged: false, |
|
|
|
|