<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
anychart.onDocumentReady(function () {
var chart = anychart.gauges.linear();
var customScaleBar = chart.scaleBar();
customScaleBar.from(0);
customScaleBar.to(0.8);
// Set offset.
customScaleBar.offset('-25%');
chart.title('Set scale bar offset');
chart.container('container');
chart.draw();
});