Search code examples
javascriptchartsantdg2plot

Ant design charts Space between points proportional to x-axis values


How can I realise space between points proportional to x-axis values with @ant-design/charts.
CodeSandbox: https://codesandbox.io/s/lucid-williams-v5jx9?file=/src/Chart.jsx

enter image description here


Solution

  • You need to specify the data type 'time'. Please, consider this example.