To populate the tooltip the way you want, you will need to use custom HTML 
tooltips.  Here's an example: http://jsfiddle.net/asgallant/GVwxu/

In your case, you would need to create one of these tooltip columns for 
each data series in your chart.  The tooltip applies to the column 
immediately before it in the view's list of columns.

On Thursday, April 25, 2013 1:50:48 PM UTC-4, ultratorrent wrote:
>
> 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.


Reply via email to