Add export functionality for the chart.