Here is my code, When the mouse point to the graph, the box will show me 3
informations (e.g: semester, percentage of skill and subject name), how to
do that?
var chart = new google.visualization.ChartWrapper({
chartType: 'ColumnChart',
containerId: 'chart_div',
options: {
title: 'Percentage',
width: 744,
height: 390
},
view: {
columns: [0, 3, 4, 5, 6]
}
});
var SubjectFilter = new google.visualization.ControlWrapper({
controlType: 'CategoryFilter',
containerId: 'SubjectFilter_div',
options: {
filterColumnLabel: 'Subject',
ui: {
label: 'Subject',
allowTyping: false,
allowMultiple: false,
selectedValuesLayout: 'belowStacked',
caption : 'Choose Subject'
}
}
});
var SemesterFilter = new google.visualization.ControlWrapper({
controlType: 'CategoryFilter',
containerId: 'SemesterFilter_div',
options: {
filterColumnLabel: 'Semester',
ui: {
label: 'Semester',
allowTyping: false,
allowMultiple: false,
selectedValuesLayout: 'belowStacked',
caption : 'Choose Semester'
}
}
});
var CategoryFilter = new google.visualization.ControlWrapper({
controlType: 'CategoryFilter',
containerId: 'CategoryFilter_div',
options: {
filterColumnLabel: 'Category',
ui: {
label: 'Category',
allowTyping: false,
allowMultiple: false,
selectedValuesLayout: 'belowStacked',
caption : 'Choose Category'
}
}
});
var dashboard = new
google.visualization.Dashboard(document.getElementById('dash_div'));
dashboard.bind([SemesterFilter], [SubjectFilter]);
dashboard.bind([SubjectFilter], [CategoryFilter]);
dashboard.bind([CategoryFilter], [chart]);
dashboard.draw(data);
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.