From 3354c1bb24e4e6eb1ccc1896d2998faadfb6461b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20Damgaard=20M=C3=B8ller?= Date: Fri, 1 Jun 2018 14:57:19 +0200 Subject: [PATCH] Missing valueFormats in definitions DiscreteBarChart and MultiBarHorizontalChart is missing the valueFormat(function) version. --- types/nvd3/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/nvd3/index.d.ts b/types/nvd3/index.d.ts index cd60da4b8d..7f92d2410e 100644 --- a/types/nvd3/index.d.ts +++ b/types/nvd3/index.d.ts @@ -1698,6 +1698,8 @@ id(value: number|string): this; valueFormat(): string; /*D3 Format object for the label of pie/donut, discrete bar and multibar charts.*/ valueFormat(value: string): this; + /*D3 Format object for the label of pie/donut, discrete bar and multibar charts.*/ + valueFormat(format: (d: any) => string): this; /* The width the graph or component created inside the SVG should be made*/ width(): number; /*The width the graph or component created inside the SVG should be made.*/ @@ -2649,6 +2651,8 @@ id(value: number|string): this; valueFormat(): string; /*D3 Format object for the label of pie/donut, discrete bar and multibar charts.*/ valueFormat(value: string): this; + /*D3 Format object for the label of pie/donut, discrete bar and multibar charts.*/ + valueFormat(format: (d: any) => string): this; /*.*/ valuePadding(): number; /**/