Question: when was charlie and the chocolate factory filmed
Answer: 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 .