add some callbacks to Chart.html

similar to Results.html
Merge branch '4.0/chart-callbacks' into 4.0-trunk