From 429c95fd8b754a1642da27d22f5e9828df1fd16e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uli=20K=C3=B6hler?= Date: Mon, 30 Jan 2017 23:50:36 +0100 Subject: [PATCH] Allow string & Date for ChartPoint.x chartJS supports these datatypes for charts with time-type X-axis --- chart.js/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chart.js/index.d.ts b/chart.js/index.d.ts index 7a7b05c714..0830e68498 100644 --- a/chart.js/index.d.ts +++ b/chart.js/index.d.ts @@ -71,7 +71,7 @@ declare namespace Chart { } export interface ChartPoint { - x?: number; + x?: number | string | Date; y?: number; } @@ -430,4 +430,4 @@ declare namespace Chart { } export = Chart; -export as namespace Chart; \ No newline at end of file +export as namespace Chart;