its a fruit.
chocolate is when you take the fruit, extract the seeds, ferment the seeds, dry, roast, seperate the shells from the beans, blend it with sugar (and milk powder if you want), and wait for it to solidify.
it's a heavily processed (in a good way) fruit.