owid / owid-grapher

A platform for creating interactive data visualizations
https://ourworldindata.org
MIT License
1.39k stars 229 forks source link

Indicator-based explorers should accept column specifying the number of decimal places #2662

Closed pabloarosado closed 2 months ago

pabloarosado commented 1 year ago

Core problem

Indicator-based explorers don't accept a column specifying the number of decimal places.

Proposed solution

We can currently specify this from ETL, by defining display: numDecimalPlaces, but it would be convenient to be able to define this parameter directly from the explorer, as a new column.

Context

This feature could be used, for example, in some of the indicators of the animal welfare explorer.

ikesau commented 1 year ago

@pabloarosado are you aware if we have any other display fields which we can overwrite in this way?

Just trying to get a sense if there's any existing code we can append to or if this would be a new flow. 🙂

pabloarosado commented 1 year ago

Hi @ikesau, there are a few fields that may come from display and seem to be accepted by indicator-based explorers, namely:

I hope that helps.

github-actions[bot] commented 2 months ago

This issue has had no activity within 10 months. It is considered stale and will be closed in 7 days unless it is worked on or tagged as pinned.