Greater-London-Authority / ldn-viz-tools

https://greater-london-authority.github.io/ldn-viz-tools/
1 stars 0 forks source link

Allow renaming data fields when generating file in `DataDownloadButton` #108

Closed jamesscottbrown closed 9 months ago

jamesscottbrown commented 1 year ago

Is your feature request related to a problem? Please describe.

The field name on data objects are often short; the ideal column headings to inlcude in a generated CSV file are typicaly longer and more descriptive. Changing the labels currently requires transforming the data before passing it to the DataDownloadButton component.

Describe the solution you'd like

It would be ueful if the DataDownloadButton accepted an additional prop that contained a mapping from field names on the

jamesscottbrown commented 9 months ago

This is addressed by https://github.com/Greater-London-Authority/ldn-viz-tools/pull/163