You may just be interested to know that chocolate comes from a tree which looks like this:
They've been growing in Latin America for thousands of years, but probably the first commercialisations came when the Spanish invaded Mexico, back in the 16th century.
The trees are wierd, because they like heat, shade and humidity; which is why some of the best cacao plantations are close to the sea or, in certain cases, like the Amazon basin, close to abundant water.
The fruit, which is called a pod, actually grows on the trunk of the tree, rather than the branches. When the pod is ripe, it's split open to reveal white "fur"around the seeds. It the seeds which are extracted, and dried, traditionally, on a huge patio exposed to the tropical sun. ( That's why you can't dry cacao seeds in the UK.

)
Once they're dried, then they can be ground and processed.
Chocolate arrived in Europe thanks to the Spanish, via Mexico. In the 18th century, Venezuela took over the main trade to Europe. By the 19th century, Ecuador was producing cheaper cacao, and then, gradually, cacao migrated to Africa.
There's a lot of argument about which variety of cacao is the best in the world, but the "criollo" variety, especially that from Chuao, in Venezuela, is generally considered the finest. Chuao, however, is a tiny village on the coast, where limited quantities are available.
The first commercial "milk" chocolate was formulated in Switzerland, in 1876. Since then, chocolate has been going downhill, especially thanks to multinationals like Mondelez, Nestlé, Mars and Hershey's. There has, however, been a considerable fight back in the past 20 years to commercialise the real thing.