Hi,
I am using scatter chart to show two data series with below code.
I want to show html tool tip for both series, but it shows html tool tip to one
of the series while other one shows default google visualization tooltip.
Please refer to below code... You will be able to reproduce issue in google
playground.
function drawVisualization() {
// Create and populate the data table.
var data = new google.visualization.DataTable();
data.addColumn('number', 'Agreement %'); // Implicit domain label col.
data.addColumn('number', 'Importance 1 %'); // Implicit series 1 data col
Orange.
data.addColumn('number', 'Importance 2 %');// Series 2 Green
//data.addColumn({type:'string', role:'tooltip'}); // annotation role col.
data.addColumn({ 'type': 'string', 'role': 'tooltip', 'p': { 'html': true }
});
data.addRows([
[80.66, 50.7, null, 'test'],
[79.84, 66.6, null, 'test'],
[78.62, 89.8, null, 'test'],
[40.62, null, 20.77, 'test'],
[79.84, null, 56.67, 'test'],
[78.62, null, 45.66, 'test']
]);
var chart = new google.visualization.ScatterChart(
document.getElementById('visualization'));
chart.draw(data, {title: 'Adaptive Question 2x2',
width: 600, height: 400,
vAxis: {title: "% Importance", titleTextStyle: {color:
"green"},gridlines : {count:3}},
hAxis: {title: "% Agreement", titleTextStyle: {color:
"green"},gridlines : {count:3}},legend:'none',colors: ["#FF8000","#21610B"]}
);
}
Please let me know if you need more details.
Series with ORANGE color is not showing HTML tool tip.(Attached screen shot for
reference)
Thanks and Regards,
Nakul
--
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.
<<attachment: scatter chart issue.png>>
