moved chart options to namespaced function in ./charts.js