Hi RR RRR, Try copying from the gallery pages instead of the playground. Each gallery page provides a full HTML page example, so that's the place to start.
The problem you're encountering is most likely that you've loaded the corechart package but not the gauge package. That's why the Gauge() method isn't available. Jon On Sat, Feb 22, 2014 at 10:09 AM, RR RRR <[email protected]> wrote: > Hi, > > I copied from the google playground (this code is running well in the > google playground) , this code into my drive. > > > https://code.google.com/apis/ajax/playground/?type=visualization#image_candlestick_chart > > function drawChart() { > var data = google.visualization.arrayToDataTable([ > ['Label', 'Value'], > ['Memory', 80], > ['CPU', 55], > ['Network', 68] > ]); > > var options = { > width: 400, height: 120, > redFrom: 90, redTo: 100, > yellowFrom:75, yellowTo: 90, > minorTicks: 5 > }; > > var chart = new > google.visualization.Gauge(document.getElementById('chart_div')); > chart.draw(data, options); > } > > > When start the code i receive this message: > > > TypeError: Funktion arrayToDataTable in Objekt [object Object] nicht > gefunden (Zeile 4, Datei "Code" > > > the code is in that line: > > var data = google.visualization.arrayToDataTable([ > ['Label', 'Value'], > ['Memory', 80], > ['CPU', 55], > ['Network', 68] > ]); > > What i did wrong? Object not found? > > > -- > 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. > -- 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.
