Skip to content

Commit

Permalink
Adding format_d3_locale example
Browse files Browse the repository at this point in the history
  • Loading branch information
royendo committed Dec 4, 2024
1 parent ba86fe5 commit 648b525
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/docs/reference/project-files/metrics-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ In your Rill project directory, create a metrics view, `<metrics_view>.yaml`, fi
- **`format_d3_locale`** — locale configuration passed through to D3, enabling changing the currency symbol among other things. For details, see the docs for D3's [`formatLocale`](https://d3js.org/d3-format#formatLocale). _(optional)_

```yaml

format_d3: "$,"
format_d3_locale:
grouping: [3, 2]
currency: ["₹", ""]
```
- **`format_preset`** — controls the formatting of this measure according to option specified below. Measures <u>cannot</u> have both `format_preset` and `format_d3` entries. _(optional; if neither `format_preset` nor `format_d3` is supplied, measures will be formatted with the `humanize` preset)_
- `humanize` — round off numbers in an opinionated way to thousands (K), millions (M), billions (B), etc.
Expand Down

0 comments on commit 648b525

Please sign in to comment.