This is probably so simple it's an insult to your intelligence, but what's
wrong with this code. I want the chart to display when clicking the button
- it just hangs. If I take away the definition of the dspChart function the
chart draws fine.
html
head
!--Load the AJAX API--
script
Why not move the google.load call above dspChart(), remove dspChart(), and
use onclick=drawChart(); ?
Jon
On Wed, Sep 10, 2014 at 10:21 AM, isaachorro...@gmail.com wrote:
This is probably so simple it's an insult to your intelligence, but what's
wrong with this code. I want the chart to
Agreed that works. Many thanks. Do you know why the google.load doesn't
work within the function. Is it to do with scope in Javascript?
On 10 September 2014 16:22, 'Jon Orwant' via Google Visualization API
google-visualization-api@googlegroups.com wrote:
Why not move the google.load call above
If you use Date objects, you can set the format of the tooltips and axis
labels to different patterns to get the effect you want:
var data = google.visualization.arrayToDataTable([
['Date', 'Value1', 'Value2', 'Value3', 'Value4'],
[new Date(2014, 6, 1), 1336060, 400361, 1001582, 997974],
The reason it doesn't work has to do with some quirky behavior of the
google loader. If you had used an inline callback, it would have worked,
eg;
function dspChart() {
google.load('visualization', '1', {'packages':['corechart'], callback:
drawChart});
}
But I don't recommend calling
The problem is because your index file has a .html extension; it should be
.php: index.php. Your web server will not parse HTML files for PHP code;
it just serves them up as-is.
On Tuesday, September 9, 2014 3:54:03 AM UTC-4, Kasper Derkinderen wrote:
Hi everyone,
Yesterday I played around