The last param must be true, but is false in the php/js example. I ran into the same problem. The examples from the download that involve dynamic data update via javascript are wrong. I spent all day beating my head against the wall on this one.
Also, be aware that your chart ID must not contain any non-alphanumeric characters as the ID will be used in javascript function calls. I had hyphens in mine and was getting errors because the javascript the library built for me was interpreting the hyphens as minus-signs and breaking everything.