<Tr> <Th> Budget </Th> <Td> $150 million </Td> </Tr> <Tr> <Th> Box office </Th> <Td> $475 million </Td> </Tr> <P> Charlie and the Chocolate Factory is a 2005 musical fantasy comedy film directed by Tim Burton and written by John August, based on the 1964 British novel of the same name by Roald Dahl . The film stars Johnny Depp as Willy Wonka and Freddie Highmore as Charlie Bucket . The storyline follows Charlie, who wins a contest and is along with four other contest winners, subsequently led by Wonka on a tour of his chocolate factory, the most magnificent in the world . </P> <P> Development for another adaptation of Charlie and the Chocolate Factory (filmed previously as Willy Wonka & the Chocolate Factory in 1971) began in 1991, which resulted in Warner Bros. providing the Dahl Estate with total artistic control . Prior to Burton's involvement, directors such as Gary Ross, Rob Minkoff, Martin Scorsese and Tom Shadyac had been involved, while actors Bill Murray, Nicolas Cage, Jim Carrey, Michael Keaton, Brad Pitt, Will Smith, Adam Sandler, and many others, were either in discussion with or considered by the studio to play Wonka . </P>

When was charlie and the chocolate factory filmed