It was originally a children's novel written by Roald Dahl and published in 1964.
However, there have been several adaptations of the story, including:
* A 1971 film adaptation: This version, starring Gene Wilder as Willy Wonka, was not a musical either.
* A 2005 film adaptation: This version, starring Johnny Depp as Willy Wonka, incorporated some musical elements, but was not a full-fledged musical.
* A stage musical adaptation: There is a stage musical adaptation of Charlie and the Chocolate Factory, which premiered in London in 2013. This is the only version of the story that is a full-fledged musical.