diff --git a/src/types/dashboard.ts b/src/types/dashboard.ts index f4fee79b..c4de6c37 100644 --- a/src/types/dashboard.ts +++ b/src/types/dashboard.ts @@ -41,14 +41,20 @@ export interface StandardConfig { min?: string; } -export type GraphConfig = BarConfig | LineConfig; -interface BarConfig { +type GraphConfig = BarConfig | LineConfig; +export interface BarConfig { type?: string; showBackground?: boolean; barWidth?: number; } -interface LineConfig { +export interface LineConfig extends AreaConfig { type?: string; - showBackground?: boolean; - barWidth?: number; + smooth?: boolean; + showSymbol?: boolean; + step?: boolean; +} + +export interface AreaConfig { + type?: string; + opacity?: number; } diff --git a/src/views/dashboard/configuration/ConfigEdit.vue b/src/views/dashboard/configuration/ConfigEdit.vue index 337f6614..488cc363 100644 --- a/src/views/dashboard/configuration/ConfigEdit.vue +++ b/src/views/dashboard/configuration/ConfigEdit.vue @@ -21,6 +21,7 @@ limitations under the License. --> :is="states.chartType" :intervalTime="appStoreWithOut.intervalTime" :data="states.source" + :config="states.graph" />