Dec 18, 2015, 7:36 AM
Gauge Chart with centered text
Hi,
is there an easy way to perform the same thing from this thread http://forums.ext.net/showthread.php...-in-the-middle with EXT.NET 3.2 ?
I tried using this code but not working for onResize function.
Thank you
is there an easy way to perform the same thing from this thread http://forums.ext.net/showthread.php...-in-the-middle with EXT.NET 3.2 ?
I tried using this code but not working for onResize function.
var onResize = function (chart, width, height) {
var sprite = chart.get(0),
box = sprite.el.dom.getBBox();
sprite.setAttributes({
x: width / 2 - (box.width / 2),
y: height / 2,
hidden: false
}, true);
};
I get a chart.get is not a function in the browser console.Thank you