anychart.onDocumentReady(function () {
var stage = anychart.graphics.create('container');
var chart = anychart.gauges.circular([{value: 7.5}]);
chart.title('Convert the global coordinates to local coordinates');
var localCoordinates = chart.globalToLocal(8, 8);
var rectangle = stage.rect(0, 0, 170, 30);
rectangle.fill({opacity: 0.1});
rectangle.setX(localCoordinates.x);
rectangle.setY(localCoordinates.y);
var customText = anychart.graphics.text(localCoordinates.x, localCoordinates.y, "");
customText.htmlText("Local coordinates [x: "
+ localCoordinates.x + ", y: " + localCoordinates.y + "]<br>Global coordinates [x: 8, y: 8]");
customText.parent(stage);
var localBounds = stage.rect();
localBounds.setBounds(stage.getBounds());