I'm interested in using a google pie chart and need it to display all 
the tooltips constantly. At the moment they come up individually on hover, 
just wondered if it's possible to do that by altering the js slightly?

Google says that you can use tooltip.trigger with either 'focus' which 
displays with hover or 'none' obviously to display nothing, but theres no 
function for show all. Can it be done by tweaking the javascript?

Heres the code:

<script type="text/javascript" src="https://www.google.com/jsapi";></script>
    <script type="text/javascript">
      google.load("visualization", "1", {packages:["corechart"]});
      google.setOnLoadCallback(drawChart);
      function drawChart() {
        var data = google.visualization.arrayToDataTable([
          ['Task', 'Hours per Day'],
          ['Toe',     38],
          ['Jam',      22],
          ['Earl',  2]
        ]);

        var options = {
          legend: 'none',
          lable: 'none',
          is3D: true,
          pieSliceText: 'none',
          slices: [{offset:0.1}, {offset:0.1}, {offset:0.1},],
          chartArea: {left:70,top:50,width:140,height:140},
          colors: ['#99C9FF','#B7B7B7', '#CCC'],
          pieSliceBorderColor: '#999',

        };

        var chart = new 
google.visualization.PieChart(document.getElementById('piechart_3d'));
        chart.draw(data, options);
      }</script>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to