06-08-2020 05:16 PM
Is it possible to make a waveform graph use enum labels as the scale?
ie. Enum {idle = 0, running = 1, error = 2}
Then graph an array of that enum where the y-scale is the names, not the numerical value (x is time). In this case the graph would display the state over time.
Solved! Go to Solution.
06-09-2020 05:02 AM
06-09-2020 10:13 AM
@Yddet wrote:
Hi,
I don't think it's possible. But as it is an enum, you already know the possible values/labels. I would not display the Y scale values and create string decorations at the unit markers.
Yddet
To add to this idea, you can always pull the strings from the enum for display so you can update them automatically if the enum is changed.
06-09-2020 10:34 AM
Thanks for the input guys; I was hoping it would be built in to save me from that, but at least that's not terribly difficult. Just a pain when you want to make the scale visible or not and have the graph resize with that. Nothing that can't be done though.