Skip to content

in stacked bar charts, a tiny line appears for series that should have a value of 0 #924

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

Closed
DSMejantel opened this issue May 26, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@DSMejantel
Copy link

Introduction

Since 0.35, in a serie all the colors are displayed even if no values are existing. A tiny line appear !

To Reproduce

{"component":"debug","title":"Risques recensés","type":"bar","height":350,"stacked":1,"toolbar":1,"ystep":10,"color":["red","orange","yellow","green"]}
{"series":"Alerte","x":"Ateliers techniques","value":1}
{"series":"Alerte","x":"École","value":2}
{"series":"Alerte","x":"Mairie (secrétariat)","value":2}
{"series":"Vigilance","x":"Ateliers techniques","value":3}
{"series":"Vigilance","x":"École","value":4}
{"series":"Vigilance","x":"Travaux en extérieur","value":1}
{"series":"Vigilance","x":"Risques Communs","value":2}
{"series":"Surveillance","x":"Ateliers techniques","value":3}
{"series":"Surveillance","x":"École","value":3}
{"series":"Surveillance","x":"Mairie (salles polyvalentes)","value":2}
{"series":"Surveillance","x":"Mairie (secrétariat)","value":2}
{"series":"Surveillance","x":"Véhicules","value":2}
{"series":"Surveillance","x":"Travaux en extérieur","value":4}
{"series":"Surveillance","x":"Risques Communs","value":1}
{"series":"Acceptable","x":"École","value":4}
{"series":"Acceptable","x":"Mairie (salles polyvalentes)","value":1}
{"series":"Acceptable","x":"Mairie (secrétariat)","value":1}
{"series":"Acceptable","x":"Travaux en extérieur","value":1}

Screenshots

Before in 0.34 :

Image

Now in 0.35 :

Image

@DSMejantel DSMejantel added the bug Something isn't working label May 26, 2025
@lovasoa
Copy link
Collaborator

lovasoa commented May 27, 2025

Thanks for reporting this @DSMejantel !

I reported the bug upstream as apexcharts/apexcharts.js#5046

I'll also work around it in sqlpage directly.

@lovasoa lovasoa changed the title Problem with charts since 0.35 version in stacked bar charts, a tiny line appears for series that should have a value of 0 May 27, 2025
@lovasoa
Copy link
Collaborator

lovasoa commented May 27, 2025

Just fixed

Image

@DSMejantel
Copy link
Author

Thanks,
We need to wait for the next release ?

@lovasoa
Copy link
Collaborator

lovasoa commented May 27, 2025

yes :)

@lovasoa
Copy link
Collaborator

lovasoa commented Jun 2, 2025

I just published v0.35.2 !

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

2 participants