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
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.
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.