blob: 22599f4bcd03f26ff7c09835cf0d6d3fa25ff7bd [file] [log] [blame]
import React from 'react';
import { SuperChart } from '@superset-ui/core';
import data from '../data/legacyData';
import { LINE_PLUGIN_LEGACY_TYPE } from '../constants';
import dummyDatasource from '../../../../../shared/dummyDatasource';
export default () => (
<>
<SuperChart
key="line1"
chartType={LINE_PLUGIN_LEGACY_TYPE}
width={400}
height={400}
datasource={dummyDatasource}
queriesData={[{ data }]}
formData={{
bottomMargin: 'auto',
colorScheme: 'd3Category10',
leftMargin: 'auto',
lineInterpolation: 'linear',
richTooltip: true,
showBrush: 'auto',
showLegend: true,
showMarkers: false,
vizType: 'line',
xAxisFormat: '%Y',
xAxisLabel: '',
xAxisShowminmax: false,
xTicksLayout: 'auto',
yAxisBounds: [null, null],
yAxisFormat: '',
yAxisLabel: '',
yAxisShowminmax: false,
yLogScale: false,
}}
/>
,
<SuperChart
key="line2"
chartType={LINE_PLUGIN_LEGACY_TYPE}
width={400}
height={400}
datasource={dummyDatasource}
queriesData={[{ data }]}
formData={{
bottomMargin: 'auto',
colorScheme: 'd3Category10',
leftMargin: 'auto',
lineInterpolation: 'linear',
richTooltip: true,
showBrush: 'auto',
showLegend: true,
showMarkers: false,
vizType: 'line',
xAxisFormat: '%Y-%m',
xAxisLabel: '',
xAxisShowminmax: false,
xTicksLayout: 'auto',
yAxisBounds: [null, null],
yAxisFormat: '',
yAxisLabel: '',
yAxisShowminmax: false,
yLogScale: false,
}}
/>
</>
);