|
|
@ -80,7 +80,7 @@ c3_chart_internal_fn.tooltipPosition = function (dataToShow, tWidth, tHeight, el |
|
|
|
// Determin tooltip position
|
|
|
|
// Determin tooltip position
|
|
|
|
if (forArc) { |
|
|
|
if (forArc) { |
|
|
|
tooltipLeft = (($$.width - ($$.isLegendRight ? $$.getLegendWidth() : 0)) / 2) + mouse[0]; |
|
|
|
tooltipLeft = (($$.width - ($$.isLegendRight ? $$.getLegendWidth() : 0)) / 2) + mouse[0]; |
|
|
|
tooltipTop = ($$.height / 2) + mouse[1] + 20; |
|
|
|
tooltipTop = ($$.hasType('gauge') ? $$.height : $$.height / 2) + mouse[1] + 20; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
svgLeft = $$.getSvgLeft(true); |
|
|
|
svgLeft = $$.getSvgLeft(true); |
|
|
|
if (config.axis_rotated) { |
|
|
|
if (config.axis_rotated) { |
|
|
|