From 7987ad00c9639f060536057313e5e40d1250412d Mon Sep 17 00:00:00 2001 From: Zipeng WU Date: Mon, 25 Jul 2016 12:02:32 +0200 Subject: [PATCH 1/2] Add missing method definition for StackedAreaChart --- nvd3/nvd3.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/nvd3/nvd3.d.ts b/nvd3/nvd3.d.ts index f0297abcb0..75b6893129 100644 --- a/nvd3/nvd3.d.ts +++ b/nvd3/nvd3.d.ts @@ -1204,6 +1204,10 @@ id(value: number|string): this; style(offset: 'expand'): this; style(offset: 'stack_percent'): this; style(offset: string): this; + width(): number; + width(value: number): this; + height(): number; + height(value: number): this; } interface Sunburst extends Nvd3Element { @@ -3270,6 +3274,15 @@ id(value: number|string): this; useInteractiveGuideline(): boolean; /*Sets the chart to use a guideline and floating tooltip instead of requiring the user to hover over specific hotspots. Turning this on will set the 'interactive' and 'useVoronoi' options to false to avoid conflicting.*/ useInteractiveGuideline(value: boolean): this; + + focusEnable(): boolean; + focusEnable(value: boolean): this; + focusHeight(): number; + focusHeight(value: number): this; + showControls(): boolean; + showControls(value: boolean): this; + brushExtent(): [number, number] | [[number, number], [number, number]]; + brushExtent(value: [number, number] | [[number, number], [number, number]]) : this; } interface SunburstChart extends Sunburst, Chart { From 56282440875714fafe7b04ba48fc1743d25b148a Mon Sep 17 00:00:00 2001 From: Zipeng WU Date: Mon, 25 Jul 2016 15:56:47 +0200 Subject: [PATCH 2/2] add x2Axis, y2Axis to StackedAreaChart --- nvd3/nvd3.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nvd3/nvd3.d.ts b/nvd3/nvd3.d.ts index 75b6893129..40389201c8 100644 --- a/nvd3/nvd3.d.ts +++ b/nvd3/nvd3.d.ts @@ -3234,7 +3234,9 @@ id(value: number|string): this; legend: Legend; controls: Legend; xAxis: Nvd3Axis; + x2Axis: Nvd3Axis; yAxis: Nvd3Axis; + y2Axis: Nvd3Axis; tooltip: Tooltip; controlLabels(): any;