Open zdefne-usgs opened 6 years ago
In my opinion I'd say that showing the lat/lon cols on the chart is an oversight and should be considered a bug. TerriaJS should not show the columns used for doing the mapping in the data shown in a chart, similar to how they are not shown as a DisplayVariable.
Re setting properties, you can set some of these, e.g. the line colour:
https://github.com/TerriaJS/terriajs/blob/master/lib/Models/TableColumnStyle.js#L36
Thank you @meh9. Just to clarify, this is after selecting a location and expanding the chart to plot multiple curves. Edited my original post to highlight that. Lon & lat are not included in the original table, but they show when a location is selected to plot multiple variables.
@zdefne-usgs yup, I understood that. :)
We have a csv catalog item that works fine. We can successfully select one of the data points on the map and plot a chart. However, selecting a location and expanding the view to the chart, the list of the potable variables on the the left pane includes the longitude and latitude in addition to the variables we want to plot. I tried to hide them in a similar way I hide the id column. However, when I do that the data doesn't plot on the map. Is this a bug or is there another way to describe a list of parameters to plot on the chart?
Trying this code
to hide them in this display
PS: Also related to this question- is there away to set properties (color, selectable, hidden, etc) for the items on this list?
Thanks!