|
|
|
@ -1041,7 +1041,7 @@
|
|
|
|
|
return translate; |
|
|
|
|
} |
|
|
|
|
function getArcRatio(d) { |
|
|
|
|
var whole = __gauge_style == 'arc' ? Math.PI : (Math.PI * 2); |
|
|
|
|
var whole = __gauge_style === 'arc' ? Math.PI : (Math.PI * 2); |
|
|
|
|
return d ? (d.endAngle - d.startAngle) / whole : null; |
|
|
|
|
} |
|
|
|
|
function convertToArcData(d) { |
|
|
|
@ -2843,7 +2843,7 @@
|
|
|
|
|
updateLegend(mapToIds(c3.data.targets), {withTransform: false, withTransitionForTransform: false}); |
|
|
|
|
|
|
|
|
|
/*-- Main Region --*/ |
|
|
|
|
if (c3.data.targets.length == 0) { |
|
|
|
|
if (c3.data.targets.length === 0) { |
|
|
|
|
main.append("text") |
|
|
|
|
.attr("class", CLASS.text) |
|
|
|
|
.attr("x", (main[0][0].parentNode.width.baseVal.value / 2) - margin.left) |
|
|
|
|