react-apexcharts icon indicating copy to clipboard operation
react-apexcharts copied to clipboard

Scatter chart with categories displays incorrect values

Open yaromyrshmid opened this issue 3 years ago • 0 comments

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

Steps to Reproduce

CodeSandbox

yaromyrshmid avatar Aug 04 '22 12:08 yaromyrshmid