I am trying to develop digital cluster for an electric bike using dash. I increased the radius of gauage circle but now the tracking and the needle positions are uneven.How to fix this?
Also how to show the track progress in gradient color rather than a single color?
here is my code
app.py
daq.Gauge(
max=140,
scale={'start': 0, 'interval': 10, 'labelInterval': 2},
min=0,
size=350,
showCurrentValue=False,
id='my-gauge',
label="",
value=120,
)
styles.css
circle.track {
stroke-width: 15px;
r:184;
stroke-dasharray: 1108;
stroke: rgb(94, 92, 92)!important;
background-image: radial-gradient(red, green, blue);
}
circle.track.progress{
stroke-width: 17px;
r:184;
/* stroke: linear-gradient(
to right,
#fffdc2,
#fffdc2 15%,
#d7f0a2 15%,
#d7f0a2 85%,
#fffdc2 85%
)!important; */
stroke: #6EE5FF !important;
}
output