Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Change daq.Gauge label color

$
0
0

@Krichardson wrote:

Hello! I have a very simple problem, I would simply like to change the color of the labels on the dash_daq Guage object. By labels I mean the small numbers representing the change in scale.

RPM

The small values ranging from zero to 8000 above.

I’ve tried this but it doesn’t seem to work.

daq.Gauge(
          id = 'engine-rpm',
          label = {'label': 'Engine RPM', 'style': {'color': 'rgb(156, 156, 156)'}},
          scale = {'start': 0, 'interval': 500, 'labelInterval': 2},
          color = {'gradient': True,
                       'ranges': {'green': [0, 6000], 'yellow': [6000, 7000], 'red': [7000, 8000]}
                  },
           min = 0,
           max = 8000,
           value = 0,
           showCurrentValue = True,
           units = 'RPM',
           theme={'dark': True 
)

Any help would be appreciated!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles