Implement the chart controls.