This commit is contained in:
syuilo 2022-02-08 19:20:09 +09:00
parent 535468e5af
commit aa7ab1c1e0

View File

@ -199,6 +199,7 @@ export default defineComponent({
parsing: false, parsing: false,
label: x.name, label: x.name,
data: x.data.slice().reverse(), data: x.data.slice().reverse(),
tension: 0.3,
pointRadius: 0, pointRadius: 0,
borderWidth: 2, borderWidth: 2,
borderColor: x.color ? x.color : getColor(i), borderColor: x.color ? x.color : getColor(i),
@ -208,6 +209,7 @@ export default defineComponent({
barPercentage: 0.9, barPercentage: 0.9,
categoryPercentage: 0.9, categoryPercentage: 0.9,
fill: x.type === 'area', fill: x.type === 'area',
clip: 8,
hidden: !!x.hidden, hidden: !!x.hidden,
})), })),
}, },
@ -216,7 +218,7 @@ export default defineComponent({
layout: { layout: {
padding: { padding: {
left: 0, left: 0,
right: 0, right: 8,
top: 0, top: 0,
bottom: 0, bottom: 0,
}, },