add legend in line/bar/area graphs

This commit is contained in:
Fine
2022-11-03 16:14:21 +08:00
parent 42d2545e61
commit 5bfac6fdc9
5 changed files with 50 additions and 21 deletions

View File

@@ -95,7 +95,7 @@ export type GraphConfig =
export interface BarConfig {
type?: string;
showBackground?: boolean;
LegendOptions?: LegendOptions;
legend?: LegendOptions;
}
export interface LineConfig extends AreaConfig {
type?: string;
@@ -111,7 +111,7 @@ export interface LineConfig extends AreaConfig {
export interface AreaConfig {
type?: string;
opacity?: number;
LegendOptions?: LegendOptions;
legend?: LegendOptions;
}
export interface CardConfig {