Browse Source

Wrap rect for region by g - #194

pull/213/merge
Masayuki Tanaka 11 years ago
parent
commit
8c580629b8
  1. 9
      c3.js
  2. 2
      c3.min.js

9
c3.js

@ -3380,12 +3380,13 @@
}
// rect for regions
mainRegion = main.select('.' + CLASS.regions).selectAll('rect.' + CLASS.region)
mainRegion = main.select('.' + CLASS.regions).selectAll('.' + CLASS.region)
.data(__regions);
mainRegion.enter().append('rect')
.style("fill-opacity", 0);
mainRegion
mainRegion.enter().append('g')
.attr('class', classRegion)
.append('rect')
.style("fill-opacity", 0);
mainRegion.selectAll('rect')
.attr("x", regionX)
.attr("y", regionY)
.attr("width", regionWidth)

2
c3.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save