Closed yo8192 closed 4 months ago
When you select 'flow' in draw.io you get a particular direction so it should be clear what 'positive' flow represents. If your data has the opposite sign to what you want for poitive flow, you could flip it by creating a bespokeDataRef. i.e.
dataRef: "myDataRef"
bespokeDataRef: "reverseData"
bespoke:
formulas:
- "reverseData = -data['myDataRef']"
I appreciate that's more boilerplate but it sounds like the arrow is drawn incorrectly given the data you are feeding it. Not sure adding another yaml term is the way to go as each one makes things more complex. Does this bespokeDataRef approach give you what you need?
hmm, actually, just tried above bespoke and bespoke formulas won't run uness an attribute is being driven. i.e. you'd have to add a dummy drive.
drives:
- elementName: "path"
elementPosition: 1
attribsSet:
visibility: "true"
That needs to be fixed...
When you select 'flow' in draw.io you get a particular direction so it should be clear what 'positive' flow represents. If your data has the opposite sign to what you want for poitive flow
Yes the issue is the mismatch between the visible direction in draw.io and the data in Grafana. I wonder if people may end up using ready-made SVG in some cases, and welcome a way to make Flow Panel do the right thing based on their data rather than have to change the SVG.
The bespokeDataRef idea sounds good, it feels simple enough, thanks.
I'll leave this open is you want to keep this issue as a reminder for what you found in your comment immediately above.
the fix to run formulas regardless of attribute drives is in 1.16.2. Given you are driving attributes already the formulas will work for you in 1.16.1 so will close out now. Thanks for raising it though. Is good to find that problem early.
I have an SVG arrow, with arrow heads on both ends, with the config:
That ends up making the animation go:
Would it be possible to reverse this, so that:
I can do it by turning around the SVG arrow in my editor, but a
direction: normal
anddirection: reverse
in Flow Panel would be nicer if there isn't already a way to do it.I tried putting negative values on the
thresholdLwrValue
andthresholdUprValue
but that didn't seem to work.