Title: Tooltip format
Last modified: November 16, 2025

---

# Tooltip format

 *  [Matej Podstrelenec](https://wordpress.org/support/users/matejpodstrelenec/)
 * (@matejpodstrelenec)
 * [6 months, 1 week ago](https://wordpress.org/support/topic/tooltip-format/)
 * Hi,
 * just an idea for improvement. How about adding an option to add extra character/
   information to the tooltip. 
   **Use case:**I have a pie chart, where my dataset
   values are set in percents. What would I like to, is to simply add there a “%”
   percentage sign to the tooltip. So that it is clear what type of value is chart
   representing.I have made it work by manually adding ” %” to chart.min.js:
 *     ```wp-block-code
       tooltip: {    callbacks: {        title: () => "",            label(t) {            let e = t.label;            const i = ": " + t.formattedValue + " %";            return Y(e) ? ((e = e.slice()), (e[0] += i)) : (e += i), e;        },    },},
       ```
   
 * But that would be obviously overwritten in next update and also one might not
   want to have it displayed in every chart. 
   Would be great if you could add this
   option 🙂
 * Thank you for great plugin.
   Matej

The topic ‘Tooltip format’ is closed to new replies.

 * ![](https://ps.w.org/chart-block/assets/icon-128x128.png?rev=2614766)
 * [Chart Block - Visualize Data with Bar, Line, Pie Charts](https://wordpress.org/plugins/chart-block/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/chart-block/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/chart-block/)
 * [Active Topics](https://wordpress.org/support/plugin/chart-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/chart-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/chart-block/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Matej Podstrelenec](https://wordpress.org/support/users/matejpodstrelenec/)
 * Last activity: [6 months, 1 week ago](https://wordpress.org/support/topic/tooltip-format/)
 * Status: not a support question