google.load("visualization", "1", {
packages: ["corechart"]
});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
["X", "C1", "C2", "C3", "C4", "C5"],
["A", 1, 2, 3, 4, 5],
["B", 2, 5, 1, 7, 9],
["C", 6, 2, 4, 1, 8],
["D", 7, 1, 2, 3, 6]
]);
var options = {
seriesType: "bars",
series: {
// Make the first column (C1) a blue bar (bar because it is the default)
0: {
color: "blue"
},
// Make the fourth column (C4) a green line (line because we overrode the default)
3: {
type: "line",
color: "green"
}
}
};
var chart = new google.visualization.ComboChart(document.getElementById("chart"));
chart.draw(data, options);
}
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<div id="chart" style="width: 900px; height: 300px;"></div>