diff --git a/package-lock.json b/package-lock.json index d29c03d..1388ae9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2797,7 +2797,7 @@ }, "mkdirp": { "version": "0.5.1", - "resolved": "http://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", "dev": true, "requires": { diff --git a/queryOverview.js b/queryOverview.js index 372f9fe..35580c4 100644 --- a/queryOverview.js +++ b/queryOverview.js @@ -1725,6 +1725,14 @@ this.svg.selectAll('.y.axis .tick').remove(); } + function updateXAxisLabel$1() { + // Make sure that the Y axis Label is tucked safely beneath reset chart button + this.svg + .select('.y.axis') + .select('.axis-title') + .attr('transform', 'translate(5,0)rotate(-90)'); + } + function onDraw() { setLeftMargin.call(this); setXDomain.call(this); @@ -1732,6 +1740,7 @@ setChartHeight.call(this); updateXAxisLabel.call(this); resetYAxisTickLabels.call(this); + updateXAxisLabel$1.call(this); } function legendFilter() { diff --git a/src/chart/onDraw.js b/src/chart/onDraw.js index 8e98cc0..ff4b910 100644 --- a/src/chart/onDraw.js +++ b/src/chart/onDraw.js @@ -4,6 +4,7 @@ import setYDomain from './onDraw/setYDomain'; import setChartHeight from './onDraw/setChartHeight'; import updateXAxisLabel from './onDraw/updateXAxisLabel'; import resetYAxisTickLabels from './onDraw/resetYAxisTickLabels'; +import updateYAxisLabel from './onDraw/updateYAxisLabel'; export default function onDraw() { setLeftMargin.call(this); @@ -12,4 +13,5 @@ export default function onDraw() { setChartHeight.call(this); updateXAxisLabel.call(this); resetYAxisTickLabels.call(this); + updateYAxisLabel.call(this); } diff --git a/src/chart/onDraw/updateYAxisLabel.js b/src/chart/onDraw/updateYAxisLabel.js new file mode 100644 index 0000000..7f1e6af --- /dev/null +++ b/src/chart/onDraw/updateYAxisLabel.js @@ -0,0 +1,7 @@ +export default function updateXAxisLabel() { + // Make sure that the Y axis Label is tucked safely beneath reset chart button + this.svg + .select('.y.axis') + .select('.axis-title') + .attr('transform', 'translate(5,0)rotate(-90)'); +}