> (e.g. combining 2 or 4 values into 1 bar?)
You'd have to perform the binning on the IOC, for example using a histogram record.
Note that in case you don't want to update the "real" IOC that has the raw data, you can place the histogram record (or whatever else you use) on a separate IOC.
The general idea for the display is that it's just the display. It shows data from PVs, and it allows operators to write to PVs.
It should not "do" anything. It shouldn't perform automation or create new data, because then you run into issues when you launch zero or more than one instances of the display. Suddenly your automation is gone,
or your various instances of the same display show different data because they were started at different times etc.
If you perform your binning on an IOC, all displays will show the same histogram data. You can also fetch it via caget or from some python script to perform additional computations, again resting assured that
it's the same histogram data that you see on the display.
-Kay