Fixed chart errors with chart js options.