mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 00:02: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 {
|
||||
tooltip: {},
|
||||
visualMap: {
|
||||
min: 0,
|
||||
max: max.value,
|
||||
type: 'piecewise',
|
||||
orient: 'horizontal',
|
||||
left: 'center',
|
||||
top: 'center',
|
||||
inRange: {
|
||||
color: [chartEmptyColor.value, chartColor.value],
|
||||
},
|
||||
pieces: [
|
||||
{ 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,
|
||||
},
|
||||
calendar: {
|
||||
|
||||
Reference in New Issue
Block a user