From a20f2d808f2a85ef6483fe01fbf6169f0aedea94 Mon Sep 17 00:00:00 2001 From: Scott Hatcher Date: Tue, 25 Aug 2015 16:48:13 -0700 Subject: [PATCH] Moved from tab spacing. --- highcharts-ng/highcharts-ng-tests.ts | 54 +++++++++++++------------- highcharts-ng/highcharts-ng.d.ts | 58 ++++++++++++++-------------- 2 files changed, 56 insertions(+), 56 deletions(-) diff --git a/highcharts-ng/highcharts-ng-tests.ts b/highcharts-ng/highcharts-ng-tests.ts index 7fb462e9ca..5f05b33731 100644 --- a/highcharts-ng/highcharts-ng-tests.ts +++ b/highcharts-ng/highcharts-ng-tests.ts @@ -4,37 +4,37 @@ var app = angular.module('app', ['highcharts-ng']); class AppController { - chartConfig: HighChartsNGConfig = { - options: { - chart: { - type: 'bar' - }, - tooltip: { - style: { - padding: 10, - fontWeight: 'bold' - } - }, - credits: { - enabled: false - }, - plotOptions: {} - }, - series: [{ + chartConfig: HighChartsNGConfig = { + options: { + chart: { + type: 'bar' + }, + tooltip: { + style: { + padding: 10, + fontWeight: 'bold' + } + }, + credits: { + enabled: false + }, + plotOptions: {} + }, + series: [{ data: [10, 15, 12, 8, 7] }], - title: { + title: { text: 'My Awesome Chart' }, - loading: true - }; - constructor($timeout: ng.ITimeoutService) { - var vm = this; - $timeout(function() { - //Some async action - vm.chartConfig.loading = false; - }); - } + loading: true + }; + constructor($timeout: ng.ITimeoutService) { + var vm = this; + $timeout(function() { + //Some async action + vm.chartConfig.loading = false; + }); + } } app.controller("AppController", AppController); \ No newline at end of file diff --git a/highcharts-ng/highcharts-ng.d.ts b/highcharts-ng/highcharts-ng.d.ts index b67ca5da54..d0a3405594 100644 --- a/highcharts-ng/highcharts-ng.d.ts +++ b/highcharts-ng/highcharts-ng.d.ts @@ -6,38 +6,38 @@ /// interface HighChartsNGConfig { - options: HighchartsChartOptions; - //The below properties are watched separately for changes. + options: HighchartsChartOptions; + //The below properties are watched separately for changes. - //Series object (optional) - a list of series using normal highcharts series options. - series?: number[]|[number, number][]| HighchartsDataPoint[]; - //Title configuration (optional) - title?: { - text?: string; - }; - //Boolean to control showng loading status on chart (optional) - //Could be a string if you want to show specific loading text. - loading?: boolean; - //Configuration for the xAxis (optional). Currently only one x axis can be dynamically controlled. - //properties currentMin and currentMax provied 2-way binding to the chart's maximimum and minimum - xAxis?: { - currentMin?: number; - currentMax?: number; - title?: { text?: string } - }, - //Whether to use HighStocks instead of HighCharts (optional). Defaults to false. - useHighStocks?: boolean; - //size (optional) if left out the chart will default to size of the div or something sensible. - size?: { - width?: number; - height?: number; - }; - //function (optional) - setup some logic for the chart - func?: (chart: HighchartsChartObject) => void; + //Series object (optional) - a list of series using normal highcharts series options. + series?: number[]|[number, number][]| HighchartsDataPoint[]; + //Title configuration (optional) + title?: { + text?: string; + }; + //Boolean to control showng loading status on chart (optional) + //Could be a string if you want to show specific loading text. + loading?: boolean; + //Configuration for the xAxis (optional). Currently only one x axis can be dynamically controlled. + //properties currentMin and currentMax provied 2-way binding to the chart's maximimum and minimum + xAxis?: { + currentMin?: number; + currentMax?: number; + title?: { text?: string } + }, + //Whether to use HighStocks instead of HighCharts (optional). Defaults to false. + useHighStocks?: boolean; + //size (optional) if left out the chart will default to size of the div or something sensible. + size?: { + width?: number; + height?: number; + }; + //function (optional) - setup some logic for the chart + func?: (chart: HighchartsChartObject) => void; } //Instantiated Chart interface HighChartsNGChart extends HighChartsNGConfig { - //This is a simple way to access all the Highcharts API that is not currently managed by this directive. - getHighcharts(): HighchartsChartObject; + //This is a simple way to access all the Highcharts API that is not currently managed by this directive. + getHighcharts(): HighchartsChartObject; } \ No newline at end of file