Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when one single data value per serie in a stacked column chart #444

Closed
markusand opened this issue Mar 27, 2019 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@markusand
Copy link

I'm using a stack bar chart, and after some filters the dataset may contain one single single data point per serie

[
  { name: "Tripper", data: [{ x: "2019-02-28T23:00:00.000Z", y: 129689 }] },
  { name: "Overnighter", data: [{ x: "2019-02-28T23:00:00.000Z", y: 462186 }] }
]

Then no bar is drawn and 60 errors like the following appear

Error: Problem parsing d="M 59.769642857142856 390.169397515528L 59.769642857142856 365.07977116906835L 111.00076530612245 365.07977116906835L 111.00076530612245 390.169397515528L 59.769642857142856 390.169397515528L -3.6271814065499956e+301 390.169397515528L 3.6271814065499956e+301 390.169397515528L 3.6271814065499956e+301 390.169397515528L 3.6271814065499956e+301 390.169397515528L -3.6271814065499956e+301 390.169397515528"
@markusand markusand changed the title Error when one single point Error when one single data value per serie Mar 27, 2019
@junedchhipa junedchhipa transferred this issue from apexcharts/vue-apexcharts Mar 27, 2019
@junedchhipa junedchhipa changed the title Error when one single data value per serie Error when one single data value per serie in a stacked column chart Mar 27, 2019
@junedchhipa
Copy link
Contributor

I was able to reproduce the issue, thanks for reporting.
This will be taken care of soon.

@junedchhipa junedchhipa added the bug Something isn't working label Mar 27, 2019
@Bassardes
Copy link

Bassardes commented Mar 28, 2019

I also find a problem with single data point in series but for line chart.
If value of point is big enough (50000 for example) then chart stop render normally and browser tab start freezing, but if value is small (1) its render normally

{ chart: { type: "line" }, xaxis: { type: "datetime" }, series: [ { name: "", data: [{ x: "2019-03-28T14:11:53.469Z", y: 50000}] } ] }

https://codepen.io/anon/pen/MxNgQg

@junedchhipa
Copy link
Contributor

Fixed both the issues (line and stacked bar)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants