Bassa Safa
unread,Sep 6, 2012, 10:37:12 AM9/6/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-visua...@googlegroups.com
I get a All series on a given axis must be of the same data type× when adding Roles Certaintity. Probably something really simple that I have missed... but 4 hours of trying with different possibilities im lost. It works when I populate DataTable with "regular" data as in the playground. But when populating with JSON it fails.
As a related question? How do one debug "google chart" code?
regards
bassa
function drawVisualization() {
// Create and populate the data table.
var grundJsonDataResultatrakning = {cols:[
{type:'number',role:'domain'},
{type:'number',role:'data'},
{type:'boolean',role:'certainty'}],
rows:[
{c:[{v:1},{v:7},{v:false}]},
{c:[{v:2},{v:8},{v:false}]}]};
var dataResultatrakning = new google.visualization.DataTable(grundJsonDataResultatrakning);
// Create and draw the visualization.
new google.visualization.LineChart(document.getElementById('visualization')).
draw(dataResultatrakning , {curveType: "function",
width: 500, height: 400,
vAxis: {maxValue: 10}}
);
}