Index: arms/css/analysis/analysis.css =================================================================== diff -u -r5cea6b95f6744022e2968c8a3705fa80523efb58 -r407f6fafee41dc4fd361c579ff405c7f1626620b --- arms/css/analysis/analysis.css (.../analysis.css) (revision 5cea6b95f6744022e2968c8a3705fa80523efb58) +++ arms/css/analysis/analysis.css (.../analysis.css) (revision 407f6fafee41dc4fd361c579ff405c7f1626620b) @@ -180,3 +180,24 @@ stroke: white; stroke-width: 0.5px; } + +@media (max-width: 768px) { + #chart-product-manpower { + /*height: 60vh;*/ + max-height: 500px; + } +} + + +#chart-product-manpower svg { + position: relative; + height: 780px; +} + + +#chart-product-manpower svg { + position: absolute; + top: 60%; + left: 50%; + transform: translate(-50%, -50%); +} \ No newline at end of file Index: arms/html/analysisResource/content-container.html =================================================================== diff -u -r1c1ec5e68177d387a0cd1312dd93ec8a7d9ec94f -r407f6fafee41dc4fd361c579ff405c7f1626620b --- arms/html/analysisResource/content-container.html (.../content-container.html) (revision 1c1ec5e68177d387a0cd1312dd93ec8a7d9ec94f) +++ arms/html/analysisResource/content-container.html (.../content-container.html) (revision 407f6fafee41dc4fd361c579ff405c7f1626620b) @@ -247,7 +247,7 @@ -
+
Index: arms/js/analysis/resource/sankey.js =================================================================== diff -u -rcd457c969d574c450f2a8a7d75958fe40c76bc8f -r407f6fafee41dc4fd361c579ff405c7f1626620b --- arms/js/analysis/resource/sankey.js (.../sankey.js) (revision cd457c969d574c450f2a8a7d75958fe40c76bc8f) +++ arms/js/analysis/resource/sankey.js (.../sankey.js) (revision 407f6fafee41dc4fd361c579ff405c7f1626620b) @@ -4,8 +4,7 @@ var initSvg = function () { var margin = { top: 10, right: 10, bottom: 10, left: 10 }; var width = document.getElementById("chart-product-manpower").offsetWidth; - var height = 500 - margin.top - margin.bottom; - + var height = document.getElementById("chart-product-manpower").offsetHeight - margin.top - margin.bottom; var vx = width + margin.left + margin.right; var vy = height + margin.top + margin.bottom;