<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
anychart.onDocumentReady(function () {
var chart = anychart.column([
{x: 'A1', value: 1.1},
{x: 'A2', value: 1.4},
{x: 'A3', value: 1.2}
]);
var scale = chart.xScale();
// Set weights.
scale.weights(['1', 3, 6]);
chart.title('Set weights');
chart.container('container');
chart.draw();
});