Your problem is with the syntax. The tooltip.text stands for "tooltip: {
text: 'percent' }"
this is what you need to place inside your options instead of what you
wrote.


On 6 בינו 2012, at 17:46, alex pavel <[email protected]> wrote:

I set :

    function drawChart1() {

     // Create the data table.
     var data = new google.visualization.DataTable();
     data.addColumn('string', 'Topping');
     data.addColumn('number', 'Slices');
          data.addRows([
       ['Excelenta', <?=$tip3?>],
       ['Buna', <?=$tip2?>],
       ['Slaba', <?=$tip1?>]
     ]);

     // Set chart options
     var options = {'tooltip.text':'percent',
     'title':'Cum a fost calatoria dumneavoastra cu <?php echo
ucfirst($compania);?>?',
                    'width':650,
                    'height':300,
                   };

     // Instantiate and draw our chart, passing in some options.
     var chart = new
google.visualization.PieChart(document.getElementById('chart_div1'));
     chart.draw(data, options);
   }

but in render I see tooltip.text both.
What is the problem?
Thanks

-- 
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To post to this group, send email to
[email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to