Gauge indicator fillcolor


#1

Hi, I want to change gauge indicator fillcolor with binding from view model but its not working, but on the maxValue it works fine.

any ideas?

<gauge:RadialBarIndicator minimum="0" maximum="{{ fullProfitVal }}" location="0.5">
            <gauge:RadialBarIndicator.indicatorStyle>
            <gauge:BarIndicatorStyle fillColor="{{ profitColor }}" barWidth="0.2"/>
            </gauge:RadialBarIndicator.indicatorStyle>
            </gauge:RadialBarIndicator>

#2

Link: https://play.nativescript.org/?template=play-js&id=avb6XO&v=2

See Line 37 in the xml file.
I was able to use binding for Color.


#3

blue is a default color, its not because you write it in view model… look I changed color code but its still blue