anychart.onDocumentReady(function () {
var stage = anychart.graphics.create('container');
var chart = anychart.bullet([
chart.range({from: 0, to: 5});
chart.range(1, {from: 5, to: 10});
chart.range(2, {from: 10, to: 15});
chart.range(3, {from: 15, to: 20});
chart.bounds(0, 0, '100%', 150);
chart.title({text: 'Serialize chart string to JSON', orientation: 'top'});
var json = chart.toJson(true);
var chartFromJson = anychart.fromJson(json);
chartFromJson.bounds(0, '50%','100%', 150);
chartFromJson.title('Creates chart from JSON string');
chartFromJson.container(stage);