Skip to content

Commit

Permalink
Fixed a ton of bugs for v2.0.0 lib
Browse files Browse the repository at this point in the history
  • Loading branch information
avdaredevil committed Dec 8, 2016
1 parent 58956f5 commit 3364526
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions highcharts-behavior.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
this.async(this.resizeChart,50)
this.async(this.__lateBinders,50)
},
setData: function(x,z) {if (!z && this.data!=x){this.data=x;return}
setData: function(x,z) {
var __app = this, isArr = x instanceof Array;
if (!isArr) {x = $.extend({name: (this.label||this.yLabel||this.xLabel),colorByPoint: this.colorByPoint},x)}
if (x && x.length && x[0].data instanceof Array) {
Expand All @@ -117,7 +117,7 @@
destroy: function() {if(!this._chart){return}this._chart.destroy()},
showLoading: function(d) {this.loadingMessage=d;this.loading=true},
zoomOut: function() {if(!this._chart){return};this._chart.zoomOut()},
getSeries: function(z) {this._getSeries(z)},
getSeries: function(z) {return this._getSeries(z)},
_getSeries: function(z) {if(!this._chart){return this._returnDummySeries()};z=typeof z != "number"?0:z;var s=this._chart.series;if(!s.length){this._warn("Chart is empty [no series]");return this._returnDummySeries()};if (z<s.length){return s[(z||0)]}else{this._warn("Index z out of bounds");return this._returnDummySeries()}},
_dataUpdate: function(d) {this.setData(d.slice?d.slice(0):d)},
_warn: function(err,c) {console.warn("%c[highcharts-chart"+(c?"::"+c:'')+"]","font-weight:bold;background-color:yellow",err)},
Expand Down
2 changes: 1 addition & 1 deletion highcharts-chart.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<dom-module id="highcharts-chart">
<template>
<style include="highcharts-shared-styles">
<style include="highcharts-shared-styles"></style>
<div id="Chart" width="100%" on-click="_checkSelected"></div>
<content></content>
</template>
Expand Down
2 changes: 1 addition & 1 deletion highcharts-map.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<dom-module id="highcharts-map">
<template>
<style include="highcharts-shared-styles">
<style include="highcharts-shared-styles"></style>
<div id="Chart" width="100%"></div>
<content></content>
</template>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion highcharts-stock.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<dom-module id="highcharts-stock">
<template>
<style include="highcharts-shared-styles">
<style include="highcharts-shared-styles"></style>
<div id="Chart" width="100%" on-click="_checkSelected"></div>
<content></content>
</template>
Expand Down

0 comments on commit 3364526

Please sign in to comment.