You can probably make charts that look similar to that, but they would be
difficult to produce. You would need to use stacked bar charts, and define
multiple different dummy series to stand in for the "blank" spaces, then set
the color of the dummy series to be the same as the chart background.
Something like this, maybe?
function drawChart() {
var data = new google.visualization.DataTable();
data.addColumn("string", "foo");
data.addColumn("number", "dummy1");
data.addColumn("number", "bar1");
data.addColumn("number," "dummy2");
data.addColumn("number", "bar2");
data.addRow();
data.setValue(0, 0, "Bar");
data.setValue(0, 1, 5);
data.setValue(0, 2, 10);
data.setValue(0, 3, 6);
data.setValue(0, 4, 3);
var chart = new
google.visualization.BarChart(document.getElementById("chart_div"));
chart.draw(data, {isStacked: true,
colors:["#FFFFFF", "#FF0000", "#FFFFFF", "#FF0000"]});
}
This would create a stacked bar chart with the "Bar" bar having two red
bars, offset from the zero axis, with white space in between. It needs
tweaking, but that's basically how you would do it. I don't recommend this
approach, though.
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.