That should work.  Check to make sure the gChartsPerCategory.js file is 
being loaded.  You may have an invalid path.

On Saturday, May 24, 2014 5:02:27 AM UTC-4, DeadRabbittt wrote:
>
> Thanks, works perfect :). I now have another issue: Can't i put all the 
> javascript code in an external file? I tried it and i called : 
>
>     <script type="text/javascript" src="https://www.google.com/jsapi
> "></script>
>     <script type="text/javascript" 
> src="../../static/myJs/gChartsPerCategory.js"></script>
>
>     <script type="text/javascript">
>     google.load('visualization', '1.1', {packages: ['controls','table']});
>     google.setOnLoadCallback(loadView());
>     function loadView(){
>         drawCategoryPickers();
>         drawPieCharts();
>         drawDummy();
>         drawDashboard({{=dataShow}});
>         drawTable();
>     }
>
> the functions are defined in my javascript file like this : 
>
> function drawCategoryPickers(){...}
>
> but i get the javascript error : Uncaught ReferenceError: 
> drawCategoryPickers is not defined. 
> Is there a way of solving that??  
>

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