diff --git a/src/core.js b/src/core.js index 861959a..981689c 100644 --- a/src/core.js +++ b/src/core.js @@ -109,7 +109,8 @@ c3_chart_internal_fn.initParams = function () { $$.xOrient = config.axis_rotated ? "left" : "bottom"; $$.yOrient = config.axis_rotated ? "bottom" : "left"; - $$.y2Orient = config.axis_rotated ? "top" : "right"; + $$.yOrient = config.axis_rotated ? (config.axis_y_inner ? "top" : "bottom") : (config.xis_y_inner ? "right" : "left"); + $$.y2Orient = config.axis_rotated ? (config.axis_y_inner ? "bottom" : "top") : (config.xis_y_inner ? "left" : "right"); $$.subXOrient = config.axis_rotated ? "left" : "bottom"; $$.isLegendRight = config.legend_position === 'right';