Skip to content

Commit

Permalink
Update Series fixed and overloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
avdaredevil committed Nov 18, 2015
1 parent 1ca1744 commit 7c975f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions highcharts-chart.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,10 @@
},
addSeries: function(name,data,colorByPoint) {this._chart.addSeries({name: name, data: (data||[]), colorByPoint: typeof colorByPoint=="undefined"?this.colorByPoint:colorByPoint},true)},
addDrillSeries: function(point,data,name) {this._chart.addSeriesAsDrilldown(point, {name: name, data: data})},
updateSeries: function(data,z) {this._chart.series[(z||0)].update(data)},
showLoading: function(d) {this.loadingMessage=d;this.loading=true},
resizeChart: function() {this._chart.setSize(this.offsetWidth,this.offsetHeight)},
destroy: function() {this._chart.destroy()},
updateSeries: function(k,v,z) {if(!this._chart){return};var NewEl = {};NewEl[k]=v;this._chart.series[(z||0)](NewEl)},
updateSeries: function(k,v,z) {if(!this._chart){return};var NewEl = {};if(typeof k=="object"){NewEl = k}else{NewEl[k]=v};this._chart.series[(z||0)].update(NewEl)},
_updateType: function(t) {this.updateSeries("type",t)},
_checkSelected: function() {if(!this._chart){return};var points = this._chart.getSelectedPoints();this._setSelected(!!points.length);this._setSelectedPoints(points)},
_xAxisUpdate: function() {if(!this._chart){return};this._chart.xAxis[0].update(this.xAxis)},
Expand Down

0 comments on commit 7c975f5

Please sign in to comment.