apexcharts.js icon indicating copy to clipboard operation
apexcharts.js copied to clipboard

Datetime line graph inserts null datapoint

Open joshleblanc opened this issue 4 years ago • 2 comments

image

codepen: https://codepen.io/ThirdSign/pen/ExjQjVQ

I have a line graph with a number of series. Each series has 1 data point, and they're not sharing any x-axis points. Apex charts is inserting, or at least thinks there is, a null data point at the same X position as some of the data points. Not all of them.

In the code pen you can see this happening on the right most point. You'll have to wave your mouse around a bit to find it, but you'll notice you'll have a hard time focusing the right-most data point at all, which I assume is related.

joshleblanc avatar Mar 10 '20 23:03 joshleblanc

Hey,

I've got the same issue, that the chart is breaking, when I use the "datetime" type for a multiple line chart.

In fact, the behavior is a little bit different. I try to render multiple lines in the chart, the first one showing. If I change the order of the linecharts, more than one is showing. When I switch to "category" as type, all lines are showing, but the xaxis is not really sorted (as expected).

// EDIT Solution found

Infact there is the bug with invisible lines. In my case, it occurs, when I had more values for the x-axis than datetime values. When I used "category" as x-axis, the category showes "undefined".

-> after fixing the issue with more data than dates as datetime, all lines became visible.

@joshleblanc in your example, the points are also visible. so it seems, that the bug is fixed!?

Thank you.

Cheers, Pakon

ger-pakon avatar Oct 03 '23 10:10 ger-pakon