|
|
@ -991,7 +991,9 @@ |
|
|
|
d = t; |
|
|
|
d = t; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
if (isNaN(d.endAngle)) d.endAngle = d.startAngle; |
|
|
|
if (isNaN(d.endAngle)) { |
|
|
|
|
|
|
|
d.endAngle = d.startAngle; |
|
|
|
|
|
|
|
} |
|
|
|
if (isGaugeType(d.data)) { |
|
|
|
if (isGaugeType(d.data)) { |
|
|
|
var sA = d.startAngle, eA = d.endAngle; |
|
|
|
var sA = d.startAngle, eA = d.endAngle; |
|
|
|
var gMin = __gauge_min, gMax = __gauge_max, |
|
|
|
var gMin = __gauge_min, gMax = __gauge_max, |
|
|
@ -1034,7 +1036,7 @@ |
|
|
|
h = Math.sqrt(x * x + y * y); |
|
|
|
h = Math.sqrt(x * x + y * y); |
|
|
|
// TODO: ratio should be an option?
|
|
|
|
// TODO: ratio should be an option?
|
|
|
|
ratio = (36 / radius > 0.375 ? 1.175 - 36 / radius : 0.8) * radius / h; |
|
|
|
ratio = (36 / radius > 0.375 ? 1.175 - 36 / radius : 0.8) * radius / h; |
|
|
|
translate = __gauge_style == 'arc' ? "translate(1,1)" : "translate(" + (x * ratio) + ',' + (y * ratio) + ")"; |
|
|
|
translate = __gauge_style === 'arc' ? "translate(1,1)" : "translate(" + (x * ratio) + ',' + (y * ratio) + ")"; |
|
|
|
} |
|
|
|
} |
|
|
|
return translate; |
|
|
|
return translate; |
|
|
|
} |
|
|
|
} |
|
|
|