For those looking to create Google line charts with Google Chart tools, particularly through the Chart Gallery, I highly suggest experimenting with the "Visualization Playground" or "code Playground."
To get started, navigate to Google Chart, choose overview > Chart Gallery > Area Charts (in this case), and typically underneath the chart image sample, locate the link for "Visualization Playground."
Experiment with the code until you grasp its functionality, paying close attention to the code within the Function drawVisualization:
var ac = new google.visualization.AreaChart(document.getElementById('visualization'));
ac.draw(data, {
title : 'Monthly Coffee Production by ....',
isStacked: true,
width: 600,
height: 400,
vAxis: {title: "Cups"},
hAxis: {title: "Month"}
});
Refer back to the Configuration Options and utilize these settings to customize your charts. For instance, if you desire a black color scheme, add a line containing the option colors: ['black'] or alter the colors to black, orange, and red as shown below:
var ac = new google.visualization.AreaChart(document.getElementById('visualization'));
ac.draw(data, {
title : 'Monthly Coffee Production by ....',
isStacked: true,
width: 600,
height: 400,
vAxis: {title: "Cups"},
hAxis: {title: "Month"},
colors: ['#000000', '#FF6600', 'red']
});
I hope this information proves helpful.