Navigation Menu

Skip to content

Commit

Permalink
Example Corrections (#620)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
zombiehugs authored and pablojim committed Oct 17, 2017
1 parent a517b2a commit 0729a0c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 17 deletions.
2 changes: 1 addition & 1 deletion example/charts/app.js
Expand Up @@ -58,7 +58,7 @@ $scope.addAxis = function(xy) {
*/
var id;
var axis;
if (xy==='Y') {
if (xy==='y') {
yAxisId += 1;
id = yAxisId;
axis = 'yAxis';
Expand Down
2 changes: 1 addition & 1 deletion example/charts/highstocks-example.html
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular.min.js"></script>
<script src="http://code.highcharts.com/stock/highstock.src.js"></script>
<script src="../../src/highcharts-ng.js"></script>
<script src="highstocks-app.js"></script>
Expand Down
19 changes: 9 additions & 10 deletions example/maps/app.js
Expand Up @@ -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'
Expand Down
9 changes: 4 additions & 5 deletions example/maps/example.html
Expand Up @@ -12,11 +12,10 @@
</style>

<script src="http://code.highcharts.com/adapters/standalone-framework.js"></script>
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/maps/modules/map.js"></script>
<script src="http://code.highcharts.com/mapdata/custom/world.js"></script>

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.28/angular.min.js"></script>
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/maps/modules/map.js"></script>
<script src="http://code.highcharts.com/mapdata/custom/world.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular.min.js"></script>
<script src="../../dist/highcharts-ng.min.js"></script>
<script src="app.js"></script>
</head>
Expand Down

0 comments on commit 0729a0c

Please sign in to comment.