mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-17 12:42:15 +01:00
change color palette, change user_id to member_id
This commit is contained in:
@@ -1,20 +1,23 @@
|
||||
<script setup lang="ts">
|
||||
import VChart from 'vue-echarts';
|
||||
import { ref } from 'vue';
|
||||
import { useCssVar } from '@vueuse/core';
|
||||
|
||||
const props = defineProps<{
|
||||
history: number[];
|
||||
}>();
|
||||
|
||||
const accentColor = useCssVar('--color-accent-quaternary');
|
||||
|
||||
const seriesData = props.history.map((el) => {
|
||||
return {
|
||||
value: el,
|
||||
...{
|
||||
itemStyle: {
|
||||
borderWidth: 1,
|
||||
borderColor: 'rgba(125,156,188,1)',
|
||||
borderColor: 'rgba(' + accentColor.value + ',0.8)',
|
||||
borderRadius: [2, 2, 0, 0],
|
||||
color: 'rgba(125,156,188,1)',
|
||||
color: 'rgba(' + accentColor.value + ',0.8)',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user