Move chart var into exported class