I would suggest using state for chart options so that you can set initial settings like empty title which will be overwritten with API data later (in the example simulation using setTimeout). You can also use simplified built-in loader.
Demo: https://stackblitz.com/edit/react-bp3amudu?file=index.js