Calling Async Function In React Component Classification Chart