Home > Enterprise >  Antd Charts - Area chart series values plot relative to last series
Antd Charts - Area chart series values plot relative to last series

Time:11-13

I'm trying to use Ant Design charts to plot an area chart with 3 series - actual, target and forecast. For some reason, the chart plots the series relative to the last item in the array, rather than relative to the x axis. I tried setting the startOnZero: true but that didn't help.

See below example: enter image description here

In this example, the target is 220 and the actual is 1558, but the target point is higher on the y axis. Recreated:

enter image description here

CodePudding user response:

By default it creates a stacked chart. You can set isStack to false.

  • Related