You can set this up by using the events tab in the chart configuration, see point 6: https://docs.mendix.com/refguide/charts-configuration#2-1-chart-properties