<LineChart
  series={[
    {
      type: 'line',
      data: [1, 2, 3, 4, 1, 2, 3, 4, 5],
      valueFormatter: (v, i) => `${v}${i.dataIndex > 5 ? ' (estimated)' : ''}`,
    },
  ]}
  xAxis={[{ data: [0, 1, 2, 3, 4, 5, 6, 7, 8] }]}
  height={200}
  width={400}
  slots={{ line: CustomAnimatedLine }}
  slotProps={{ line: { limit: 5 } as any }}
  sx={{ '& .line-after path': { strokeDasharray: '10 5' } }}
/>