GSS-Cogs / chart-builder

The Chart Builder is a proof-of-concept app to understand the feasibility of using a CSV file (or SPARQL query) to generate and customise a chart or data visualisation
https://chart-builder-no4vxskx7a-nw.a.run.app
2 stars 0 forks source link

issue-890/selectedColumns in chart builder has blank entries #203

Closed StRhys closed 11 months ago

StRhys commented 1 year ago

to get the first column name for the data view of chart builder, selectedColumns is passed in. selectedColumns holds the names of the data columns. Previously when setting selectedColumns changed it would replace the previous entry with blank and push a new name to the end of selectedColumns. This would mean when the data view came to grab the first column name it would grab the wrong one. This new method simplifies the process and gives each data column a fixed position, so the first entry will always be the correct name.

image