mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-17 12:42:15 +01:00
make sure days with low tracked time are clearly distinguished from no time in activity graph, fixes #447
This commit is contained in:
@@ -106,15 +106,17 @@ const option = computed(() => {
|
|||||||
return {
|
return {
|
||||||
tooltip: {},
|
tooltip: {},
|
||||||
visualMap: {
|
visualMap: {
|
||||||
min: 0,
|
|
||||||
max: max.value,
|
|
||||||
type: 'piecewise',
|
type: 'piecewise',
|
||||||
orient: 'horizontal',
|
orient: 'horizontal',
|
||||||
left: 'center',
|
left: 'center',
|
||||||
top: 'center',
|
top: 'center',
|
||||||
inRange: {
|
pieces: [
|
||||||
color: [chartEmptyColor.value, chartColor.value],
|
{ value: 0, color: chartEmptyColor.value },
|
||||||
},
|
{ gt: 0, lte: max.value * 0.25, color: chroma.mix(chartEmptyColor.value, chartColor.value, 0.4).hex() },
|
||||||
|
{ gt: max.value * 0.25, lte: max.value * 0.5, color: chroma.mix(chartEmptyColor.value, chartColor.value, 0.6).hex() },
|
||||||
|
{ gt: max.value * 0.5, lte: max.value * 0.75, color: chroma.mix(chartEmptyColor.value, chartColor.value, 0.8).hex() },
|
||||||
|
{ gt: max.value * 0.75, lte: max.value, color: chartColor.value },
|
||||||
|
],
|
||||||
show: false,
|
show: false,
|
||||||
},
|
},
|
||||||
calendar: {
|
calendar: {
|
||||||
|
|||||||
Reference in New Issue
Block a user