We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Zeroes in Chart Tooltip

Good day,

Just wanted to ask if it is possible to remove/hide the 0 values in the tooltip. What should I do to hide the 0 values?

Thank you.



5 Replies 1 reply marked as answer

DG Durga Gopalakrishnan Syncfusion Team January 19, 2023 03:26 PM UTC

Hi Germie,


Greetings from Syncfusion.


We suggest you sharedTooltipRender event to hide the zero data points from args.text. Please check with the below API reference link.


methods: {

      sharedTooltipRender: function(args) {

        //…

  }

}



API Reference : https://ej2.syncfusion.com/vue/documentation/api/chart/#sharedtooltiprender


Please let us know if you have any concerns.


Regards,

Durga Gopalakrishnan.



GF Germie Fernandez January 31, 2023 01:35 PM UTC

Wrong colors:Wrong colors:

Good day Durga,

I was able to hide the text in the tooltip, but I used tooltipRender. 

tooltipRender(args) {
if (args.data.pointY === 0) { args.text = ''
}
}

I encountered a new problem where the legend colors are shuffle when one of the tooltip text is hidden.
Correct colors:


Wrong colors:




GF Germie Fernandez January 31, 2023 01:38 PM UTC

Btw, my version for the chart 

"@syncfusion/ej2-vue-charts": "^19.1.64",
"@syncfusion/ej2-vue-base": "^18.4.42",




SB Swetha Babu Syncfusion Team February 2, 2023 11:14 AM UTC

Germie,


We have considered the reported scenario as a bug and logged a defect report for the same. The fix for the reported scenario will be included in our weekly patch release which is expected to be rolled out on February 14, 2023. Please find the below feedback link to keep track of the reported scenario.

 

Feedback link: https://www.syncfusion.com/feedback/40820/tooltip-text-is-not-rendered-properly-when-removing-one-text-in-tooltip

 
If you have any more specifications/precise replication procedure to be followed, please add it as a comment in the portal.


 


Marked as answer

SB Swetha Babu Syncfusion Team February 22, 2023 04:45 AM UTC

Germie,


Thank you for your patience.


We have included the fix for the reported scenario in our weekly patch release(v20.4.51). You can download the latest package from the below link.


https://www.npmjs.com/~syncfusionorg



Please upgrade the ej2-vue-charts package to the latest version to resolve the reported scenario. Please get back to us if you need further assistance.


Loader.
Live Chat Icon For mobile
Up arrow icon