mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-15 19:52:15 +01:00
fix Y-Label ui regression from echarts update
This commit is contained in:
@@ -107,9 +107,7 @@ const option = computed(() => ({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
axisLine: {
|
axisLine: {
|
||||||
lineStyle: {
|
show: false,
|
||||||
color: 'transparent', // Set desired color here
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
@@ -119,16 +117,13 @@ const option = computed(() => ({
|
|||||||
fontFamily: 'Inter, sans-serif',
|
fontFamily: 'Inter, sans-serif',
|
||||||
},
|
},
|
||||||
axisTick: {
|
axisTick: {
|
||||||
lineStyle: {
|
show: false,
|
||||||
color: 'transparent', // Set desired color here
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
type: 'value',
|
type: 'value',
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
color: labelColor.value,
|
show: false,
|
||||||
fontFamily: 'Inter, sans-serif',
|
|
||||||
},
|
},
|
||||||
splitLine: {
|
splitLine: {
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ const props = defineProps<{
|
|||||||
}>();
|
}>();
|
||||||
|
|
||||||
const accentColor = useCssVariable('--theme-color-chart');
|
const accentColor = useCssVariable('--theme-color-chart');
|
||||||
const markLineColor = useCssVariable('--color-border-secondary');
|
|
||||||
|
|
||||||
const seriesData = computed(() =>
|
const seriesData = computed(() =>
|
||||||
props.history.map((el) => {
|
props.history.map((el) => {
|
||||||
@@ -36,36 +35,11 @@ const option = computed(() => ({
|
|||||||
xAxis: {
|
xAxis: {
|
||||||
type: 'category',
|
type: 'category',
|
||||||
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
|
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
|
||||||
markLine: {
|
show: false,
|
||||||
lineStyle: {
|
|
||||||
color: markLineColor.value,
|
|
||||||
type: 'dashed',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
axisLine: {
|
|
||||||
lineStyle: {
|
|
||||||
color: 'transparent', // Set desired color here
|
|
||||||
},
|
|
||||||
},
|
|
||||||
axisLabel: {
|
|
||||||
fontSize: 16,
|
|
||||||
fontWeight: 600,
|
|
||||||
margin: 24,
|
|
||||||
fontFamily: 'Inter, sans-serif',
|
|
||||||
},
|
|
||||||
axisTick: {
|
|
||||||
lineStyle: {
|
|
||||||
color: 'transparent', // Set desired color here
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
type: 'value',
|
type: 'value',
|
||||||
splitLine: {
|
show: false,
|
||||||
lineStyle: {
|
|
||||||
color: 'transparent', // Set desired color here
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -193,28 +193,23 @@ const option = computed(() => {
|
|||||||
type: 'category',
|
type: 'category',
|
||||||
data: weekdays.value,
|
data: weekdays.value,
|
||||||
axisLine: {
|
axisLine: {
|
||||||
lineStyle: {
|
show: false,
|
||||||
color: 'transparent', // Set desired color here
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
fontSize: 16,
|
fontSize: 14,
|
||||||
fontWeight: 600,
|
fontWeight: 500,
|
||||||
margin: 24,
|
margin: 24,
|
||||||
fontFamily: 'Inter, sans-serif',
|
fontFamily: 'Inter, sans-serif',
|
||||||
color: labelColor.value,
|
color: labelColor.value,
|
||||||
},
|
},
|
||||||
axisTick: {
|
axisTick: {
|
||||||
lineStyle: {
|
show: false,
|
||||||
color: 'transparent', // Set desired color here
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
type: 'value',
|
type: 'value',
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
color: labelColor.value,
|
show: false,
|
||||||
fontFamily: 'Inter, sans-serif',
|
|
||||||
},
|
},
|
||||||
splitLine: {
|
splitLine: {
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
|
|||||||
Reference in New Issue
Block a user