How to handle 0 or null series data for pie and donut charts? #2785
Unanswered
pixieltron
asked this question in
Q&A
Replies: 3 comments 1 reply
-
Hi Thanks for moving to discussions does anybody have any current way they handle this |
Beta Was this translation helpful? Give feedback.
0 replies
-
I had a similar problem and I found this solution: When the component receive null data, I verify it and update the chart with chart.updateOptions({
series: [1],
labels: [],
colors: ['#f0f0f0'],
}); Therefore, the chart is displayed with circle 100% filled and with gray color, Cris |
Beta Was this translation helpful? Give feedback.
1 reply
-
Wrap it in the same object then loop data in that object , condition if
data is less <= than 0 or data is null else data , on holiday at mo so no
example but it works hope this helps
…On Thu, 4 Jan 2024, 19:07 albamatti, ***@***.***> wrote:
Thanks! And in what part I can put this?
—
Reply to this email directly, view it on GitHub
<#2785 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKLNOQSRJJ55ZFUHIHSOGJ3YM34YZAVCNFSM5IMGQS3KU5DIOJSWCZC7NNSXTOKENFZWG5LTONUW63SDN5WW2ZLOOQ5TQMBRGYZDEMQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Apexcharts , how would you handle 0 or empty data in pies at present when all series is null or 0 data?
no visible chart( 1 very thin line ) pre-requisite's: have legends turned on with there numbers using formatter *thumb
Update request: this should be a classed as an exception if all chart series are 0 or all null then display grey circle or greyed out pie with text awaiting data ,
Thanks
Josh
Beta Was this translation helpful? Give feedback.
All reactions