Browse Source

Move regions below grid lines so text displays when region is opaque

pull/343/head
Adam Bryzak 11 years ago
parent
commit
7cedbcb0d5
  1. 12
      c3.js
  2. 4
      c3.min.js

12
c3.js

@ -2967,6 +2967,11 @@
.attr("text-anchor", "middle") // horizontal centering of text at x position in all browsers.
.attr("dominant-baseline", "middle"); // vertical centering of text at y position in all browsers, except IE.
// Regions
main.append('g')
.attr("clip-path", clipPath)
.attr("class", CLASS.regions);
// Grids
grid = main.append('g')
.attr("clip-path", clipPath)
@ -2990,11 +2995,6 @@
}
grid.append('g').attr('class', CLASS.ygridLines);
// Regions
main.append('g')
.attr("clip-path", clipPath)
.attr("class", CLASS.regions);
// Define g for chart area
main.append('g')
.attr("clip-path", clipPath)
@ -3058,7 +3058,7 @@
.attr("class", CLASS.chartTexts);
// if zoom privileged, insert rect to forefront
main.insert('rect', __zoom_privileged ? null : 'g.' + CLASS.grid)
main.insert('rect', __zoom_privileged ? null : 'g.' + CLASS.regions)
.attr('class', CLASS.zoomRect)
.attr('width', width)
.attr('height', height)

4
c3.min.js vendored

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