Ivory Coast is the world 's leading producer of cocoa , the key ingredient in chocolate .