Made chart view erg so the javascript can be changed