Do not display value when equal to 0 flexmonster

Resolved
ELG PEDESTAIS asked on August 20, 2021

do not display value when equal to 0 flexmonster, view image attachament?

Attachments:
Screenshot_7.png

2 answers

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster August 23, 2021

Hello,
 
Thank you for posting on our forum.
 
We suggest using the customizeChartElement hook to implement the desired behavior.
For your case, the handler would look similar to the following:

function customizeChartElementFunction(element, data) {
if (data.type === "series_label" && data.value === 0) {
element.remove();
}
}

 
We have also prepared the JSFiddle for your reference: https://jsfiddle.net/flexmonster/57ytzjmu/.
 
Please let us know if it works well for you.
Looking forward to hearing your feedback.
 
Kind regards, Illia

Public
ELG PEDESTAIS August 23, 2021

ok, tks

Please login or Register to Submit Answer