Dealing with line and pie charts