Hi,
this is my first time post on this group. feel free to correct me for any mistake made.
i have a combo chart of line chart and bar chart.
i have set the series point size with default color.
but when i try to override the point color with column role style but it not working.
function drawActiveJobsChart() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'Systems');
data.addColumn('number', 'Counts');
data.addColumn('number', 'Value');
data.addColumn({
type: 'string',
role: 'style'
});
var style = 'point {size: 10; shape-type: square; fill-color: #000000;}';
data.addRow(['foo', 10, 5, style]);
data.addRow(['foo', 20, 10, style]);
data.addRow(['bar', 10, 5, style]);
data.addRow(['bar', 30, 20, style]);
data.addRow(['baz', 20, 5, style]);
data.addRow(['baz', 50, 30, style]);
//});
var options = {
title: 'System Numbers',
width: 900,
height: 400,
allowHtml: true,
hAxis: {
title: 'Systems',
titleTextStyle: {
color: 'red'
},
textStyle: {
color: 'red'
}
},
series: {
0: {
type: "line",
targetAxisIndex: 0,
pointShape: 'square',
pointSize: 10
},
1: {
type: "bars",
targetAxisIndex: 1
}
}
};
var chart = new google.visualization.ComboChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
google.load('visualization', '1', {
packages: ['corechart'],
callback: drawActiveJobsChart
});