Commit b10fec74 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix overlap of grid on axis - #187

parent 65bc8f99
...@@ -2649,6 +2649,33 @@ ...@@ -2649,6 +2649,33 @@
/*-- Main Region --*/ /*-- Main Region --*/
// Grids
grid = main.append('g')
.attr("clip-path", clipPath)
.attr('class', CLASS.grid);
// X-Grid
if (__grid_x_show) {
grid.append("g").attr("class", CLASS.xgrids);
}
if (notEmpty(__grid_x_lines)) {
grid.append('g').attr("class", CLASS.xgridLines);
}
if (__point_focus_line_enabled) {
grid.append('g')
.attr("class", CLASS.xgridFocus)
.append('line')
.attr('class', CLASS.xgridFocus);
}
// Y-Grid
if (__grid_y_show) {
grid.append('g').attr('class', CLASS.ygrids);
}
if (notEmpty(__grid_y_lines)) {
grid.append('g').attr('class', CLASS.ygridLines);
}
// Add Axis // Add Axis
if (__axis_x_show) { if (__axis_x_show) {
main.append("g") main.append("g")
...@@ -2683,33 +2710,6 @@ ...@@ -2683,33 +2710,6 @@
.style("text-anchor", textAnchorForY2AxisLabel); .style("text-anchor", textAnchorForY2AxisLabel);
} }
// Grids
grid = main.append('g')
.attr("clip-path", clipPath)
.attr('class', CLASS.grid);
// X-Grid
if (__grid_x_show) {
grid.append("g").attr("class", CLASS.xgrids);
}
if (notEmpty(__grid_x_lines)) {
grid.append('g').attr("class", CLASS.xgridLines);
}
if (__point_focus_line_enabled) {
grid.append('g')
.attr("class", CLASS.xgridFocus)
.append('line')
.attr('class', CLASS.xgridFocus);
}
// Y-Grid
if (__grid_y_show) {
grid.append('g').attr('class', CLASS.ygrids);
}
if (notEmpty(__grid_y_lines)) {
grid.append('g').attr('class', CLASS.ygridLines);
}
// Regions // Regions
main.append('g') main.append('g')
.attr("clip-path", clipPath) .attr("clip-path", clipPath)
......
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