You need to sign in or sign up before continuing.
Commit 7cedbcb0 authored by Adam Bryzak's avatar Adam Bryzak

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

parent ded33770
...@@ -2967,6 +2967,11 @@ ...@@ -2967,6 +2967,11 @@
.attr("text-anchor", "middle") // horizontal centering of text at x position in all browsers. .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. .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 // Grids
grid = main.append('g') grid = main.append('g')
.attr("clip-path", clipPath) .attr("clip-path", clipPath)
...@@ -2990,11 +2995,6 @@ ...@@ -2990,11 +2995,6 @@
} }
grid.append('g').attr('class', CLASS.ygridLines); grid.append('g').attr('class', CLASS.ygridLines);
// Regions
main.append('g')
.attr("clip-path", clipPath)
.attr("class", CLASS.regions);
// Define g for chart area // Define g for chart area
main.append('g') main.append('g')
.attr("clip-path", clipPath) .attr("clip-path", clipPath)
...@@ -3058,7 +3058,7 @@ ...@@ -3058,7 +3058,7 @@
.attr("class", CLASS.chartTexts); .attr("class", CLASS.chartTexts);
// if zoom privileged, insert rect to forefront // 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('class', CLASS.zoomRect)
.attr('width', width) .attr('width', width)
.attr('height', height) .attr('height', height)
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment