# Adding Dollar Sign In Metrics Visualization

**URL:** https://discuss.elastic.co/t/adding-dollar-sign-in-metrics-visualization/95547
**Category:** Kibana
**Created:** [August 2, 2017, 2:17pm UTC](https://discuss.elastic.co/t/adding-dollar-sign-in-metrics-visualization/95547 "2017-08-02T14:17:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sharon.c](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sharon.c/32/16076_2.png) [@sharon.c](https://discuss.elastic.co/u/sharon.c)
#### Post date: [August 2, 2017, 2:17pm UTC](https://discuss.elastic.co/t/adding-dollar-sign-in-metrics-visualization/95547/1 "2017-08-02T14:17:15Z")

</div>

I am using Kibana 5.1. I have a Metrics Visualization which shows Revenue in Dollars, now it only shows the number. I want to change the format to put a Dollar sign in the front of the number. I know using painless script might help, but I cannot get the correct syntax, can anybody help me?

---

<div class="post-metadata">

### Author: ![Dallas\_Toth](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dallas_toth/32/22630_2.png) [@Dallas\_Toth](https://discuss.elastic.co/u/Dallas_Toth)
#### Post date: [August 2, 2017, 3:12pm UTC](https://discuss.elastic.co/t/adding-dollar-sign-in-metrics-visualization/95547/2 "2017-08-02T15:12:08Z")

</div>

I did find a way to have the $ or any Prefix/Suffix added to your display. I changed it in the Index patterns.

management \> Index patterns \> Select the index with the field you want to change \> find the Name of the value that you want the $ added to \> Controls \> Format change to Number \> change Numeral.js format pattern 0,0.[000] to $0,0.[000].

Now anywhere you are using that field in Visuals will have the $ prefix.

---

<div class="post-metadata">

### Author: ![sharon.c](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sharon.c/32/16076_2.png) [@sharon.c](https://discuss.elastic.co/u/sharon.c)
#### Post date: [August 2, 2017, 5:29pm UTC](https://discuss.elastic.co/t/adding-dollar-sign-in-metrics-visualization/95547/3 "2017-08-02T17:29:15Z")

</div>

Thank you! It works

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [August 30, 2017, 5:29pm UTC](https://discuss.elastic.co/t/adding-dollar-sign-in-metrics-visualization/95547/4 "2017-08-30T17:29:43Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
