From 0729a0c33b23f87f30f2384070ed745ee7c76e1a Mon Sep 17 00:00:00 2001 From: John Gerdsen Date: Tue, 17 Oct 2017 15:27:39 -0500 Subject: [PATCH] Example Corrections (#620) Bumped Angular Version to 1.5.8 where necessary to allow component declaration. Refactored Config object on Maps example to vanilla. Adjusted comparator in General example, strong comparison was failing since it was checking for uppercase character. --- example/charts/app.js | 2 +- example/charts/highstocks-example.html | 2 +- example/maps/app.js | 19 +++++++++---------- example/maps/example.html | 9 ++++----- 4 files changed, 15 insertions(+), 17 deletions(-) diff --git a/example/charts/app.js b/example/charts/app.js index 15ed4c3..d7e39aa 100644 --- a/example/charts/app.js +++ b/example/charts/app.js @@ -58,7 +58,7 @@ $scope.addAxis = function(xy) { */ var id; var axis; - if (xy==='Y') { + if (xy==='y') { yAxisId += 1; id = yAxisId; axis = 'yAxis'; diff --git a/example/charts/highstocks-example.html b/example/charts/highstocks-example.html index 4612d94..26b9c92 100644 --- a/example/charts/highstocks-example.html +++ b/example/charts/highstocks-example.html @@ -2,7 +2,7 @@ - + diff --git a/example/maps/app.js b/example/maps/app.js index 167f947..c4f6c2e 100644 --- a/example/maps/app.js +++ b/example/maps/app.js @@ -72,17 +72,16 @@ angular }; this.config = { - options: { - legend: { - enabled: false - }, - plotOptions: { - map: { - mapData: Highcharts.maps['custom/world'], - joinBy: ['name'] - } - }, + legend: { + enabled: false + }, + plotOptions: { + map: { + mapData: Highcharts.maps['custom/world'], + joinBy: ['name'] + } }, + animation: true, chartType: 'map', title: { text: 'Highcharts-ng map example' diff --git a/example/maps/example.html b/example/maps/example.html index bfbdd6c..524f27e 100644 --- a/example/maps/example.html +++ b/example/maps/example.html @@ -12,11 +12,10 @@ - - - - - + + + +