The PHP code doesn't help me here, can you open the page in a browser, view 
the source, and paste the javascript here?

On Monday, June 24, 2013 1:06:19 AM UTC-4, [email protected] wrote:
>
> Hi asgallant,
>
> Here is my code...
>
>
> <?php
> $survey_question = "SELECT id,answer,total_attempt,questionid from 
> survey_answer where `questionid` = $ques_id AND `answer`!='' AND status='1' 
> ORDER BY id ASC";
> $answers_result = @mysql_query($survey_question);
> $table = array();
>  $table['cols'] = array(
> array('label' => 'Question', 'type' => 'string'),
> array('label' => 'Total Attempt', 'type' => 'number')
> );
> $rows = array();
> while($r = mysql_fetch_assoc($answers_result)) {
> //print_r($r);
> $temp = array();
> $temp[] = array('v' => (string) $r['answer']);  // you will probably need 
> to transform this into the Date object format
> $temp[] = array('v' => (int) $r['total_attempt']);  // typecast to int, 
> float, whatever - if you don't, it will be interpreted as a string
> $rows[] = array('c' => $temp);
> }
> $table['rows'] = $rows;
> $jsonData = json_encode($table);
> //echo $jsonData;
> ?>
> <div id="draw_chart<?php echo $questio_print ?>"></div>
> <script type="text/javascript">
> // Load the Visualization API and the piechart package.
> google.load("visualization", "1", {packages:["corechart"]});
>  // Set a callback to run when the Google Visualization API is loaded.
> google.setOnLoadCallback(drawChart);
>  function drawChart() {
>
>   // Create our data table out of JSON data loaded from server.
>   var data = new google.visualization.DataTable(<?php echo $jsonData ?>);
>   var options = {
>    is3D: true,
>    width: 900,
>    height: 300
> };
>   // Instantiate and draw our chart, passing in some options.
>   // Do not forget to check your div ID
>   var chart = new 
> google.visualization.PieChart(document.getElementById('draw_chart<?php echo 
> $questio_print ?>'));
>   chart.draw(data, options);
> }
>  </script>
>
>
>
> On Friday, June 21, 2013 9:10:17 PM UTC+5:30, asgallant wrote:
>>
>> You can't adjust the placement of the text.  If you post code that 
>> replicates the problem, I'll take a look and see if there are any tricks I 
>> can come up with to end-route the problem.
>>
>> On Friday, June 21, 2013 3:25:50 AM UTC-4, [email protected] wrote:
>>>
>>> Hello there,
>>>
>>> I am facing a very strange problem that the text inside slice is going 
>>> half outside the slice.
>>>
>>> Please help me in adjusting the text.
>>>
>>> Screenshot attached.
>>>
>>>
>>> <https://lh3.googleusercontent.com/-HwsVI5HZToQ/UcP_2AU_-AI/AAAAAAAAAAM/jIvyLv-PTL4/s1600/51c3fc98d535cfc546000016.jpeg>
>>>
>>>

-- 
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