Fdans has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/399438 )
Change subject: Fix width of axis
......................................................................
Fix width of axis
Bug: T182817
Change-Id: I995e088c4f2f9fee67ad5223a3c95d4fdf8eeb0f
---
M src/components/detail/chart/BarChart.vue
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
jenkins-bot: Verified
Fdans: Looks good to me, approved
diff --git a/src/components/detail/chart/BarChart.vue
b/src/components/detail/chart/BarChart.vue
index 03a3727..518a3fd 100644
--- a/src/components/detail/chart/BarChart.vue
+++ b/src/components/detail/chart/BarChart.vue
@@ -122,7 +122,7 @@
.style('stroke-width', 0.5);
}
const x = scales.scaleTime()
- .rangeRound([0, graphElement.node().getBBox().width])
+ .rangeRound([0, width])
.domain(datespan);
const xAxis = axes.axisBottom(x);
g.append('g').attr('transform', `translate(0,${height})`)
--
To view, visit https://gerrit.wikimedia.org/r/399438
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I995e088c4f2f9fee67ad5223a3c95d4fdf8eeb0f
Gerrit-PatchSet: 1
Gerrit-Project: analytics/wikistats2
Gerrit-Branch: master
Gerrit-Owner: Milimetric <[email protected]>
Gerrit-Reviewer: Fdans <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits