invalid namespace on Chart class