You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
2.0 KiB
74 lines
2.0 KiB
import ChartComponent from './chart.svelte';
|
|
import Grid from './chart-grid.svelte';
|
|
import XAxis from './chart-x-axis.svelte';
|
|
import YAxis from './chart-y-axis.svelte';
|
|
import Line from './chart-line.svelte';
|
|
import Area from './chart-area.svelte';
|
|
import Bar from './chart-bar.svelte';
|
|
import Scatter from './chart-scatter.svelte';
|
|
import Tooltip from './chart-tooltip.svelte';
|
|
import Legend from './chart-legend.svelte';
|
|
|
|
type ChartNamespace = typeof ChartComponent & {
|
|
Grid: typeof Grid;
|
|
CartesianGrid: typeof Grid;
|
|
XAxis: typeof XAxis;
|
|
YAxis: typeof YAxis;
|
|
Line: typeof Line;
|
|
Area: typeof Area;
|
|
Bar: typeof Bar;
|
|
Scatter: typeof Scatter;
|
|
Tooltip: typeof Tooltip;
|
|
Legend: typeof Legend;
|
|
};
|
|
|
|
const Chart = ChartComponent as ChartNamespace;
|
|
Chart.Grid = Grid;
|
|
Chart.XAxis = XAxis;
|
|
Chart.YAxis = YAxis;
|
|
Chart.Line = Line;
|
|
Chart.Area = Area;
|
|
Chart.Bar = Bar;
|
|
Chart.Scatter = Scatter;
|
|
Chart.CartesianGrid = Grid;
|
|
Chart.Tooltip = Tooltip;
|
|
Chart.Legend = Legend;
|
|
|
|
export { Chart };
|
|
export default Chart;
|
|
|
|
export { default as LineChart } from './line-chart.svelte';
|
|
export { default as AreaChart } from './area-chart.svelte';
|
|
export { default as BarChart } from './bar-chart.svelte';
|
|
export { default as ScatterChart } from './scatter-chart.svelte';
|
|
export { default as Sparkline } from './sparkline.svelte';
|
|
export { default as PieChart } from './pie-chart.svelte';
|
|
export { default as BarList } from './bar-list.svelte';
|
|
export { default as BarSegment } from './bar-segment.svelte';
|
|
export { default as RadarChart } from './radar-chart.svelte';
|
|
|
|
export { SERIES_ROLES, seriesColor } from './context';
|
|
export type { ChartContext } from './context';
|
|
export type {
|
|
AreaChartProps,
|
|
BarChartProps,
|
|
BarListProps,
|
|
BarSegmentProps,
|
|
ChartAreaProps,
|
|
ChartCategory,
|
|
ChartAxisProps,
|
|
ChartBarProps,
|
|
ChartGridProps,
|
|
ChartLineProps,
|
|
ChartProps,
|
|
ChartScatterProps,
|
|
ChartTooltipProps,
|
|
ChartXScaleKind,
|
|
LineChartProps,
|
|
PieChartProps,
|
|
PieDatum,
|
|
RadarChartProps,
|
|
ScatterChartProps,
|
|
SparklineProps
|
|
} from './types';
|