bananas-commerce-admin
Version:
What's this, an admin for apes?
26 lines (25 loc) • 798 B
TypeScript
import React from "react";
import { ChartsLegendProps } from "@mui/x-charts/ChartsLegend";
import { DatasetType, MakeOptional } from "@mui/x-charts/internals";
import { LineSeriesType } from "@mui/x-charts/models/seriesType";
import { Granularity } from "../../types/dashboard";
declare module "@mui/material/styles" {
interface Palette {
graphColorPrimary?: {
main: string;
};
}
}
export interface LineChartProps {
dataset: DatasetType;
series?: MakeOptional<LineSeriesType, "type">[];
dataKeyX: string;
dataKeyY?: string;
height?: number;
area?: boolean;
granularity?: Granularity;
yAxisOptions?: object;
legendProps?: ChartsLegendProps;
}
export declare const LineChart: React.FC<LineChartProps>;
export default LineChart;