Hi Beto,

The image doesn't help me except to see that there is no chart.  And I
can't do much with your php, partly because i don't know the language well
enough, but moreover, I can only guess what is going on in your server.  So
the code I need to see is what gets sent to the browser.  Go to your web
page and do View Source.   Or better, just give me a link to your web
page.  Send by private email if you would prefer.

On Fri, Mar 20, 2015 at 9:58 AM, Beto <[email protected]> wrote:

> Hello Daniel,
>
>
> I'm posting all code and sending a screen print
>
> Thank you for support
>
>
>
>
>
>
>
>
>
>
> Em sexta-feira, 20 de março de 2015 09:59:42 UTC-3, Daniel LaLiberte
> escreveu:
>>
>> Hi Beto,
>>
>> I suspect you mean that you see "No stats available yet!".  Since the
>> code you posted is php, which runs on your server, we can't tell what it
>> will generate in the browser.  Could you instead point us at the page that
>> is generated?
>>
>> I would guess there is a problem with one of your data (1-8)
>> assignments.  You might go into the browser debugger to see what is
>> happening and be able to fix it yourself.
>>
>>
>> On Fri, Mar 20, 2015 at 5:37 AM, Beto <[email protected]> wrote:
>>
>>> Hello,
>>>
>>> I have a code other than the graphics is, as I have not much knowledge
>>> helps to ask friends forum. I get the following message instead of the
>>> graphics:
>>>
>>> "In stats available yet!"
>>>
>>>
>>> Below part of the code:
>>>
>>>
>>> I appreciate if you can help me
>>>
>>>
>>>
>>>         var data1 = <?php echo json_encode($data1); ?>;
>>> var data2 = <?php echo json_encode($data2); ?>;
>>> var data3 = <?php echo json_encode($data3); ?>;
>>> var data4 = <?php echo json_encode($data4); ?>;
>>> var data5 = <?php echo json_encode($data5); ?>;
>>> var data6 = <?php echo json_encode($data6); ?>;
>>> var data7 = <?php echo json_encode($data7); ?>;
>>> var data8 = <?php echo json_encode($data8); ?>;
>>>         var compatibleMode = false;
>>>  function loadGraph(div, data, title2, typer){
>>>         var o = {
>>>             titleTextStyle:{color:'#444'},
>>> title: title2,
>>>             tooltip:{textStyle: {fontSize: '12'}},
>>>             hAxis:{textPosition: 'none', title:'',  titleTextStyle:
>>> {fontSize: '11', color: '#444'}},
>>>             vAxis:{minValue:0},
>>> chartArea:{left: '50', top: '15', width: '75%',right: 200},
>>> backgroundColor:{stroke: 'white'},
>>> hAxis: {title: '<?=$Lang->t("Day")?>'},
>>> vAxis: {title: '<?=$Lang->t("Amount")?>'},
>>>         };
>>>
>>> d = google.visualization.arrayToDataTable(data);
>>> if(d.tf){
>>> if(typer == 'pie'){
>>>             var c = compatibleMode ? new google.visualization.
>>> ColumnChart(document.getElementById(div)) : new
>>> google.visualization.PieChart(document.getElementById(div));
>>>            c.draw(d, o);
>>> }
>>> else if(typer == 'column'){
>>>             var c = compatibleMode ? new google.visualization.
>>> ColumnChart(document.getElementById(div)) : new google.visualization.
>>> ColumnChart(document.getElementById(div));
>>>            c.draw(d, o);
>>> }
>>> else if(typer == 'area'){
>>>             var c = compatibleMode ? new google.visualization.
>>> ColumnChart(document.getElementById(div)) : new google.visualization.
>>> AreaChart(document.getElementById(div));
>>>            c.draw(d, o);
>>> }
>>> }
>>> else{
>>> $('#'+div).html('<div class="grayish"><?=$Lang->t("No stats available
>>> yet!")?></div>');
>>> }
>>> }
>>>     function macGa(){
>>>        loadGraph('chart1', data1, '<?=$Lang->t("Messages")?>', 'area');
>>>    loadGraph('chart2', data2, '<?=$Lang->t("Images")?>', 'area');
>>>    loadGraph('chart3', data3, '<?=$Lang->t("Videos")?>', 'area');
>>>    loadGraph('chart6', data6, '<?=$Lang->t("Audios")?>', 'area');
>>>    loadGraph('chart4', data4, '<?=$Lang->t("Messages sent")?>', 'pie');
>>>    loadGraph('chart5', data5, '<?=$Lang->t("Images sent")?>', 'pie');
>>>
>>>    loadGraph('chart7', data7, '<?=$Lang->t("Videos sent")?>', 'pie');
>>>    loadGraph('chart8', data8, '<?=$Lang->t("Audios sent")?>', 'pie');
>>>     }
>>> $(document).ready(function(){
>>>         var pkg = compatibleMode ? 'magelinechart' : 'corechart';
>>>         google.load('visualization', '1', {packages:[pkg],
>>> callback:macGa});
>>> });
>>> </script>
>>> <?php
>>>
>>> --
>>>
>>
>>
>>
>> --
>> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
>>  - 978-394-1058
>> [email protected]   5CC, Cambridge MA
>> [email protected] 9 Juniper Ridge Road, Acton MA
>>
>  --
> 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/d/optout.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>  -
978-394-1058
[email protected] <[email protected]>   5CC, Cambridge MA
[email protected] <[email protected]> 9 Juniper Ridge
Road, Acton MA

-- 
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/d/optout.

Reply via email to