import React from 'react'; import Placeholder from '../../../components/placeholder/Placeholder'; import { VChart } from '@visactor/react-vchart'; import './Linechart.less'; const commonSpec = { type: 'line', xField: 'listings', 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 }) { return ( {series == null || series.length === 0 ? (
No Data for selected timeframe :-/
) : ( )}
); }; export default Linechart;