A Survey and Approach to Chart Classification