<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 a second 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> <P> Burton immediately brought regular collaborators Depp and Danny Elfman aboard . Charlie and the Chocolate Factory represents the first time since The Nightmare Before Christmas that Elfman contributed to a film score using written songs and his vocals . Filming took place from June to December 2004 at Pinewood Studios in the United Kingdom . Charlie and the Chocolate Factory was released to positive critical reception and was a box office success, grossing $475 million worldwide . </P> <P> Charlie Bucket (Freddie Highmore) is a poor boy who lives near the Wonka Candy Company . The company's owner, Willy Wonka (Johnny Depp), has for long closed access to his factory due to problems concerning industrial espionage that led him to fire all his employees, among them Charlie's Grandpa Joe (David Kelly). One day, Wonka informs of a contest, in which Golden Tickets have been placed in five random Wonka Bars worldwide, and the winners will be given a full tour of the factory as well as a lifetime supply of chocolate, while one ticketholder will be given a special prize at the end of the tour . </P>

Where was charlie and the chocolate factory made