anychart.onDocumentReady(function () {
{x: 'Cycling', value: 10},
{x: 'Swimming', value: 12},
{x: 'Hiking', value: 11},
{x: 'Alpinism', value: 9}
chart.title('Save chart as JPG file');
chart.container('container');
chart.saveAsJpg(360, 350, 0.9, true);