The reason it's "ta cokolada" is because chocolate is the subject of the sentence, like in this example, where Prague is the subject: Praha se mi libi. Prague is not the subject in the equivalent English translation "I like Prague" but if you think about it more literally, roughly "Prague pleases me," then you can see that the thing that "pleases you" is the subject, and that is why it should be Nominative.