N
Nuxt3mo ago
WiFi Plug

nuxt charts display formatted label?

I'm using nuxt charts to display revenue however it's shown as 1.0545 etc but I want the label to show $1.05. How would I achieve this? I don't see an example like this in their docs
2 Replies
kapa.ai
kapa.ai3mo ago
Hi @WiFi Plug. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- I'm sorry, but the knowledge sources provided do not contain specific information or examples about formatting chart labels (such as currency formatting) in Nuxt Charts. The available documentation and examples cover formatting numbers in tables and input components, but not within chart labels or tooltips for Nuxt Charts. If you are using a charting library like Chart.js within Nuxt, you would typically use the library's own options (such as the callbacks in Chart.js tooltips or axis ticks) to format labels. However, there is no explicit example or documentation for this scenario in the provided sources. If you need help with number formatting in other Nuxt UI components, you can refer to the UInputNumber currency formatting example, but this does not directly apply to chart labels. If you can provide more details about the specific chart library or module you are using, I may be able to help further if relevant documentation is available. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai3mo ago
<@679734274840330384> Kapa.ai is still learning and improving, please let me know how I did by reacting below.

Did you find this page helpful?