react-apexcharts
react-apexcharts copied to clipboard
Scatter chart with categories displays incorrect values
For serie with data
[ { y: 1, x: "category-1" }, { y: 2, x: "category-1" }, { y: 3, x: "category-2" }, { y: 4, x: "category-3" } ]
Expected Behavior
Chart should have:
2 datapoints on "category-1" on x-axis 1 datapoint on "category-2" on x-axis 1 datapoint on "category-3" on x-axis
Current Behavior
Chart has:
1 datapoint on "category-1" on x-axis 1 datapoint on second "category-1" on x-axis 1 datapoint on "category-2" on x-axis no "category-3" on x-axis