Hi folks,
I am putting together a 'data selector' that will drive a function node to build an InfluxDB query to display data in a graph.
Under the hood I have things working, as in the graph is good, the function node that builds the query is a work in progress, but basically functional, and the InfluxDB is fine.
From a UI perspective; I want a control that offers a list of data items that can be selected, single or multiple, likely easy enough with a table node for example.
However within the list I would like to offer a 'scale' option, preferably as a dropdown on each row of the list.
The endgame is to present a table or dropdown with a relatively short list of items that can be optionally displayed on a chart. For each item there needs to be 3 checkboxes, Min, Average, Max, again doable in a table I think, but also a selectable multiplier, preferably from a dropdown on the table row.
I cant work out how to achieve this...
Whatever control is used to select the scale/multiplier, for each item/row, needs to be a control that is mutually exclusive, so a single entry dropdown or radio button arrangement.
At this stage the mechanism/code is unimportant and I don't have anything to post that works, or attempts to work, in the way that I want... The question is how might I go about it?
The output msg format doesn't mater, I can deal with that later, so a flat JSON string would do just as well as nested objects or array's.
The data passed forward need to be the name of an item, it aggregate values to be included, any combination of Min/Avg/Max and a scale factor for the data series.
The reason for attempting this is to allow the user to pick data with very different ranges and compare them, visually, in a chart.
Obviously the aggregation period has to be global, for a specific chart, and can therefore be picked separately, but I want t be able to select a subset of series data, with a unique scale factor, from a list of possibilities...
I already have dropdowns populating additional dropdowns, EG, select a category and then pick an item, which works just fine, but I cant work out how best to present a list that offers a mutually exclusive selection that can be applied to a listed item!
Happy to entertain any strategy/control that may be an option.
Thanks for looking