Skip to content

Commit

Permalink
rangebar context made global to access at other places
Browse files Browse the repository at this point in the history
  • Loading branch information
junedchhipa committed Oct 3, 2020
1 parent dd1be49 commit 2b181dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/Core.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export default class Core {
let candlestick = new CandleStick(this.ctx, xyRatios)
this.ctx.pie = new Pie(this.ctx)
let radialBar = new Radial(this.ctx)
let rangeBar = new RangeBar(this.ctx, xyRatios)
this.ctx.rangeBar = new RangeBar(this.ctx, xyRatios)
let radar = new Radar(this.ctx)
let elGraph = []

Expand Down Expand Up @@ -247,7 +247,7 @@ export default class Core {
elGraph = candleStick.draw(gl.series)
break
case 'rangeBar':
elGraph = rangeBar.draw(gl.series)
elGraph = this.ctx.rangeBar.draw(gl.series)
break
case 'heatmap':
let heatmap = new HeatMap(this.ctx, xyRatios)
Expand Down

0 comments on commit 2b181dc

Please sign in to comment.