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();
var separator = legend.titleSeparator();
separator.fill(['#ffffff', '#7fffd4'], 90, true, 0.9);
chart.title('Set the separator fill as a linear gradient');
chart.container('container');