@@ -17,7 +17,7 @@ import {
1717 TooltipComponent ,
1818} from ' echarts/components' ;
1919import type { AggregatedTimeEntries , Organization } from ' @/packages/api/src' ;
20- import { useCssVar } from ' @vueuse/core ' ;
20+ import { useCssVariable } from ' @/utils/useCssVariable ' ;
2121
2222use ([
2323 CanvasRenderer ,
@@ -47,8 +47,10 @@ const xAxisLabels = computed(() => {
4747 formatDate (el .key ?? ' ' , organization ?.value ?.date_format )
4848 );
4949});
50- const accentColor = useCssVar (' --theme-color-chart' , null , { observe: true });
51- const labelColor = useCssVar (' --color-text-secondary' , null , { observe: true });
50+ const accentColor = useCssVariable (' --theme-color-chart' );
51+ const labelColor = useCssVariable (' --color-text-secondary' );
52+ const markLineColor = useCssVariable (' --color-border-secondary' );
53+ const splitLineColor = useCssVariable (' --color-border-tertiary' );
5254
5355const seriesData = computed (() => {
5456 return props ?.groupedData ?.map ((el ) => {
@@ -111,7 +113,7 @@ const option = computed(() => ({
111113 data: xAxisLabels .value ,
112114 markLine: {
113115 lineStyle: {
114- color: ' rgba(125,156,188,0.1) ' ,
116+ color: markLineColor . value ,
115117 type: ' dashed' ,
116118 },
117119 },
@@ -135,9 +137,13 @@ const option = computed(() => ({
135137 },
136138 yAxis: {
137139 type: ' value' ,
140+ axisLabel: {
141+ color: labelColor .value ,
142+ fontFamily: ' Outfit, sans-serif' ,
143+ },
138144 splitLine: {
139145 lineStyle: {
140- color: ' rgba(125,156,188,0.2) ' , // Set desired color here
146+ color: splitLineColor . value ,
141147 },
142148 },
143149 },
0 commit comments