Closed noobnesz closed 9 months ago
Can you do it like this?
+ override.byName.withPropertiesFromOptions(
standardOptions.color.withMode('fixed')
+ standardOptions.color.withFixedColor('red')
)
@Duologic Thanks for being awesome as always. Not sure how I missed to do this but yes your solution solved my problem.
Thank you!
Closing this issue.
Hi,
So I have a grafonnet code like this:
I expect grafonnet to render an override like this panel json:
But instead it renders two objects with the same id
"color"
inside theproperties
array like this:I tried using only the
withFixedColor()
function withoutwithMode('fixed')
and vice versa but they only render onevalue
at a time for"id" : "color"
:"fixedColor": "red"
and"mode": "fixed"
, respectively (both do not work as expected).Am I using the correct functions for color overrides? I am using the latest grafonnet release
v10.1.0
and on grafanav10.1.4
.This is related to #99 and #104.