I am trying to use an HTML button to call a JavaScript function.
Here\'s the code:
silly way:
onclick="javascript:CapacityChart();"
You should read about discrete javascript, and use a frameworks bind method to bind callbacks to dom events.