Added ChartElement class necessary for implementing user interaction.