From 0ba3a1c20bd2e4b42d22d09e8b53a51a3d0acb0e Mon Sep 17 00:00:00 2001 From: Frederik Banke Date: Tue, 21 Jul 2020 11:09:20 +0200 Subject: [PATCH 1/2] Updated ChartWrapperOptions --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index 4983f2b4..eb3fd493 100644 --- a/src/types.ts +++ b/src/types.ts @@ -130,7 +130,7 @@ export interface ChartWrapperOptions { height: number; is3D: boolean; title: string; - backgroundColor: string; + backgroundColor: string | Record; hAxis?: { minValue?: any; maxValue?: any; From 4c4ad9e03f5953a5d328f161866e2ef20efd2a4b Mon Sep 17 00:00:00 2001 From: Frederik Banke Date: Fri, 31 Jul 2020 15:03:53 +0200 Subject: [PATCH 2/2] Fields same as specified in Google Charts docs Instead of taking any object of type Record, it now only takes three specified fields (fill, stroke, strokeWidth), which are the same as the ones specified in the Google Charts docs. https://developers.google.com/chart/interactive/docs/gallery/linechart?csw=1#Configuration_Options --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index eb3fd493..8f8c660f 100644 --- a/src/types.ts +++ b/src/types.ts @@ -130,7 +130,7 @@ export interface ChartWrapperOptions { height: number; is3D: boolean; title: string; - backgroundColor: string | Record; + backgroundColor: string | {fill: string, stroke: string, strokeWidth: number}; hAxis?: { minValue?: any; maxValue?: any;