chart changed (js added)