temperature = {
const t = scales(temp)
const source = t.source
const fahrenheit = t.units.fahrenheit
return ({
quantity: capitalize(t.quantity),
face: "none",
ring: "grey",
text: "black",
dot: { color: "lightgrey", radius: 15/100 },
background: fill,
...config,
bands,
scales: [
{
...source,
side: +1,
value: source.amount(value),
color: "black",
baseline: 2/200,
alignTickmarks,
ticks: [
{ ...major },
{ ...medior, divisions: 2 },
{ ...minor, divisions: 10 },
],
},
{
...fahrenheit,
side: -1,
value: fahrenheit.amount(value),
color: "red",
baseline: 2/200,
alignTickmarks,
ticks: [
{ ...major },
{ ...medior, divisions: 2 },
{ ...minor, divisions: 10 },
],
}
],
hands: [
{
value, color: "green",
start: 12/100, stop: 38/100, width: 2/200,
},
{
value: 0, color: "green",
show: showBufferStop,
start: axesRadius - + 5/100, stop: axesRadius + 5/100, width: 2/100,
},
{
value: slice, color: "red",
show: showBufferStop,
start: axesRadius - + 5/100, stop: axesRadius + 5/100, width: 2/100,
},
]
})
}