<LineChart
  {...lineChartsParams}
  xAxis={[{ data: years, scaleType: 'time', valueFormatter: yearFormatter }]}
  series={lineChartsParams.series.map((series) => ({
    ...series,
    valueFormatter: (v) => (v === null ? '' : currencyFormatter(v)),
  }))}
/>