anychart.onDocumentReady(function () {
var chart = anychart.pie([
{x: 'Cycling', value: 10},
{x: 'Swimming', value: 12},
{x: 'Hiking', value: 11},
{x: 'Alpinism', value: 9}
var legend = chart.legend();
legend.itemsLayout('vertical-expandable');
var separator = legend.titleSeparator();
separator.stroke('#ff4040');
separator.orientation('left');
chart.title('Set the separator orientation');
chart.container('container');