# How do I make the Billions unit show as B instead of G in Observable Plot?

**URL:** https://talk.observablehq.com/t/how-do-i-make-the-billions-unit-show-as-b-instead-of-g-in-observable-plot/7560
**Category:** Help
**Created:** [January 25, 2023, 8:09pm UTC](https://talk.observablehq.com/t/how-do-i-make-the-billions-unit-show-as-b-instead-of-g-in-observable-plot/7560 "2023-01-25T20:09:55Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![mcmcclur](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mcmcclur/32/2364_2.png) [@mcmcclur](https://talk.observablehq.com/u/mcmcclur)
#### Post date: [January 25, 2023, 8:40pm UTC](https://talk.observablehq.com/t/how-do-i-make-the-billions-unit-show-as-b-instead-of-g-in-observable-plot/7560/2 "2023-01-25T20:40:07Z")

</div>

I guess you could specify the `tickFormat` option and then call `.replace` on the resulting string , as in

```
Plot.plot({
  x: { tickFormat: (x) => d3.format("0.2s")(x).replace("G", "B") },
  y: { tickFormat: (x) => d3.format("0.1s")(x).replace("G", "B") },
  marks: [
    Plot.dot(
      d3
        .range(100)
        .map(() => [10 **10 * Math.random(), 10** 10 * Math.random()])
    )
  ]
})

```

---

_[View the full topic](https://talk.observablehq.com/t/how-do-i-make-the-billions-unit-show-as-b-instead-of-g-in-observable-plot/7560)._
