From 155c08c045421775a9b2c378c3e1e3d83c651091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6khan=20=C3=96zen?= Date: Thu, 4 Feb 2016 14:49:25 +0100 Subject: [PATCH] also hide arc label line when gauge_label_show is false --- src/arc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arc.js b/src/arc.js index 5211286..15aa105 100644 --- a/src/arc.js +++ b/src/arc.js @@ -306,7 +306,7 @@ c3_chart_internal_fn.redrawArc = function (duration, durationForExit, withTransf else { mainArcLabelLine .style("fill", function (d) { return config.color_pattern.length > 0 ? $$.levelColor(d.data.values[0].value) : $$.color(d.data); }) - .style("display", "") + .style("display", config.gauge_label_show ? "" : "none") .each(function (d) { var lineLength = 0, lineThickness = 2, x = 0, y = 0, transform = ""; if ($$.hiddenTargetIds.indexOf(d.data.id) < 0) {