anychart.onDocumentReady(function () {
var chart = anychart.pie([
{x: 'Cycling', value: 10},
{x: 'Swimming', value: 12},
{x: 'Hiking', value: 11},
{x: 'Alpinism', value: 9}
var state = chart.selected();
state.stroke('2 #4CAF50');
chart.title('Get and modify selected state');
chart.container('container');