Is chocolate a carb or fat?

Trying to figure out what to best classify it as I'm trying to watch on carby foods