From d095c67aa93626f02bf72bd5b8a2886870496fdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20SIMOND?= Date: Thu, 2 Feb 2017 13:40:29 +0100 Subject: [PATCH 1/2] Add missing property 'noData' to HighChartsNGConfig HighChartsNGConfig is missing noData property implemented since highcharts-ng#0.0.6 : https://github.com/pablojim/highcharts-ng#version-006 --- highcharts-ng/highcharts-ng-tests.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/highcharts-ng/highcharts-ng-tests.ts b/highcharts-ng/highcharts-ng-tests.ts index 0bf559061b..6f79d6e79a 100644 --- a/highcharts-ng/highcharts-ng-tests.ts +++ b/highcharts-ng/highcharts-ng-tests.ts @@ -33,7 +33,8 @@ class AppController { title: { text: 'My Awesome Chart' }, - loading: true + loading: true, + noData: 'No data here' }; constructor($timeout: ng.ITimeoutService) { var vm = this; From 0d9808c65180cd9ce6b12194064f9cc3fd03f66f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20SIMOND?= Date: Thu, 2 Feb 2017 13:46:24 +0100 Subject: [PATCH 2/2] Add missing property 'noData' to HighChartsNGConfig --- highcharts-ng/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/highcharts-ng/index.d.ts b/highcharts-ng/index.d.ts index 123799e76c..639d21d88e 100644 --- a/highcharts-ng/index.d.ts +++ b/highcharts-ng/index.d.ts @@ -35,6 +35,8 @@ declare global { }; //function (optional) - setup some logic for the chart func?: (chart: ChartObject) => void; + //no data text (optional) to show if all series are empty + noData?: string; } //Instantiated Chart