Adapting chart functions to IE.