anychart.onDocumentReady(function() {
var chart = anychart.surface(getData());
var customColorScale = anychart.scales.ordinalColor();
customColorScale.ranges([
{less: -1.5, color: '#C6FFDD'},
{from: -1.5, to: 0, color: '#FBD786'},
{greater: 0, color: '#f7797d'}
chart.colorScale(customColorScale);
chart.title('Set color scale using value');
chart.container('container');