I'm trying to draw a line chart with both negative and positive values which maps it on the respective quadrants with the same color, but I want to change the color of lines above and below the x-axis.
var data = new google.visualization.DataTable();
data.addColumn("string", "Year");
data.addColumn("number", "Effective Investible Surplus");
data.addRows(dataSet);
this.formatNumber.format(data,1);//indian currency format
var options = {
legend: this.legendStyle,
areaOpacity: 0.8,
backgroundColor: '#f5f1e7',
animation: {
startup: true,
duration: 300,
easing: 'linear',
},
hAxis: {
title: "Years",
titleTextStyle: this.chartTitleText
},
vAxis: {
title: "Rupees",
titleTextStyle: this.chartTitleText,
format: this.numberPattern
},
colors: ["#b3dda7"]
};
var chart = new google.visualization.AreaChart(
document.getElementById("chart_div")
);
chart.draw(data, options);
});