add the control for the chart RAF and animation type