anychart.onDocumentReady(function () {
var stage = anychart.graphics.create('container');
var palette = anychart.palettes.rangeColors();
palette.items(['#F44336', '#FFEB3B']);
palette.itemAt(4, '#03A9F4');
for (var i = 1; i < 10; i++) {
var rect = stage.rect((i - 1) * stage.width() / 9, 0, stage.width() / 9 - .5, stage.height());
rect.fill(palette.itemAt(i));