From 6f01ff0da9b8c9ffb7a66641a9a914ddb7ea633e Mon Sep 17 00:00:00 2001 From: rhenna Date: Tue, 10 Feb 2015 12:21:04 -0800 Subject: [PATCH] Correct input for generateGetAreaPoints Fixes an issue where generateGetAreaPoints was taking in the wrong input causing labels for area charts to be incorrectly positioned. --- src/text.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text.js b/src/text.js index 007e18e..59fe1a8 100644 --- a/src/text.js +++ b/src/text.js @@ -62,7 +62,7 @@ c3_chart_internal_fn.getTextRect = function (text, cls) { }; c3_chart_internal_fn.generateXYForText = function (areaIndices, barIndices, lineIndices, forX) { var $$ = this, - getAreaPoints = $$.generateGetAreaPoints(barIndices, false), + getAreaPoints = $$.generateGetAreaPoints(areaIndices, false), getBarPoints = $$.generateGetBarPoints(barIndices, false), getLinePoints = $$.generateGetLinePoints(lineIndices, false), getter = forX ? $$.getXForText : $$.getYForText;