adding new chart system

This commit is contained in:
Christian Kellner
2025-09-03 14:22:04 +02:00
parent 29026ccad8
commit f8e0376ddd
8 changed files with 44 additions and 76 deletions

View File

@@ -11,6 +11,21 @@ const commonSpec = {
yField: 'listingsNumber',
seriesField: 'provider',
legends: { visible: true },
line: {
style: {
lineWidth: 2,
},
},
point: {
visible: false,
},
axes: [
{
orient: 'bottom',
field: 'listings',
zero: false,
},
],
};
const Linechart = function Linechart({ title, series, isLoading = false }) {
@@ -28,7 +43,6 @@ const Linechart = function Linechart({ title, series, isLoading = false }) {
},
data: { values: series },
}}
option={{ mode: 'desktop-browser' }}
/>
)}
</Placeholder>