Make the chart more reusable.