chore(client): tweak chart

This commit is contained in:
syuilo 2022-02-11 15:14:08 +09:00
parent bf4cdd71ce
commit 88e09ef380
2 changed files with 5 additions and 3 deletions

View File

@ -217,6 +217,7 @@ export default defineComponent({
borderColor: x.color ? x.color : getColor(i),
borderDash: x.borderDash || [],
borderJoinStyle: 'round',
borderRadius: props.bar ? 3 : undefined,
backgroundColor: props.bar ? (x.color ? x.color : getColor(i)) : alpha(x.color ? x.color : getColor(i), 0.1),
gradient: props.bar ? undefined : {
backgroundColor: {
@ -248,6 +249,7 @@ export default defineComponent({
x: {
type: 'time',
stacked: props.stacked,
offset: false,
time: {
stepSize: 1,
unit: props.span === 'day' ? 'month' : 'day',
@ -309,7 +311,7 @@ export default defineComponent({
},
external: externalTooltipHandler,
},
zoom: {
zoom: props.detailed ? {
pan: {
enabled: true,
},
@ -335,7 +337,7 @@ export default defineComponent({
max: 'original',
},
}
},
} : undefined,
gradient,
},
},

View File

@ -18,6 +18,6 @@ const props = withDefaults(defineProps<{
user: misskey.entities.User;
limit?: number;
}>(), {
limit: 40,
limit: 50,
});
</script>