Esri / Esri/cedar

Ability to specify formatting in tooltip

Open
#238 4 comments 0 reactions 0 assignees View on GitHub
v0x
Dominant language
Handlebars
Stars
265
Forks
236
PR merge metrics
No merged PRs in 30d

Description

Support for text transformation via [vega marks template](https://github.com/vega/vega/wiki/Marks#templates) or just simply [d3 formatting](https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md) for tooltip, labels, ticks in `definition` like

```
"tooltip": {
"title": "{aspect}",
"content": "{totalPerAspect|number:'$.3f'}"
}
```
or maybe in `override`

```
"marks": [
{"properties":
{
text": {"template": "{totalPerAspect|number:'$.3f'}"},
}
}
]
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.