nicgirault / circosJS

d3 library to build circular graphs
MIT License
505 stars 117 forks source link

Bug Fix for Stack with direction='in' #82

Open gauriachalare123 opened 4 years ago

gauriachalare123 commented 4 years ago

There is no way to specify max. no of layers for stack. If there are too many overlapping regions and when we specify stack direction = 'in' or 'center' the stack layers are getting plotted outside the specified the inner and outer radius. But in case of direction ='out' the layers are getting hidden . Layers are not getting plotted outside the specified inner and outer radius in case direction = 'out'. Please refer issue #81

Change in Stack.js

if (this.conf.direction === 'in') { return [ Math.max(this.conf.outerRadius - radialEnd, this.conf.innerRadius), Math.max(this.conf.outerRadius - radialStart,this.conf.innerRadius)

  ]
}