'; let req = new XMLHttpRequest(); req.onreadystatechange = function () { if (req.readyState === 4 && req.status === 200) { let result = JSON.parse(req.response); document.getElementById("landprices").innerHTML = result.data; buildCharts(result.charts.areaChartData, result.charts.qmPriceChartData); loading = false; } else if (req.readyState === 4) { loading = false; } }; const url = "/stadt/neuschoenau/aggregation?year=" + val[1] + "&month=" + val[0]; req.open('GET', url, true); setTimeout(function () { req.send(); }, 1200); } }) } const areaChartData = { labels: [], data: [] }; const qmPriceChartData = { labels: [], data: [] }; areaChartData.labels = [ "0 m² - 100 m²" , "100 m² - 500 m²" , "500 m² - 1000 m²" , "1000 m² - 2000 m²" , "2000 m²+" ]; areaChartData.data = [ 0 , 0 , 9 , 0 , 5 ]; qmPriceChartData.labels = [ "0 € / m² - 100 € / m²" , "100 € / m² - 200 € / m²" , "200 € / m² - 300 € / m²" , "300 € / m² - 400 € / m²" , "400 € / m²+" ]; qmPriceChartData.data = [ 9 , 5 , 0 , 0 , 0 ]; buildCharts(areaChartData, qmPriceChartData); new Chart(document.getElementById("trend-chart"), { type: 'line', data: { labels: [ 'Apr. 2021', 'Aug. 2021', 'Nov. 2021', 'Dez. 2021', 'Jan. 2022', 'Feb. 2022', 'Mai 2022', 'Juni 2022', 'Juli 2022', 'Aug. 2022', 'Sept. 2022', 'Okt. 2022', 'Nov. 2022', 'Dez. 2022', 'Jan. 2023', 'Feb. 2023', 'März 2023', 'Juli 2023', 'Aug. 2023', 'Sept. 2023', 'Okt. 2023', 'Nov. 2023', 'Dez. 2023', 'Jan. 2024', 'März 2024', 'Apr. 2024', 'Mai 2024', 'Juni 2024', 'Aug. 2024', 'Sept. 2024', 'Okt. 2024', 'Nov. 2024', 'Dez. 2024', 'Feb. 2025', 'März 2025' ], datasets: [ { label: " €/m² im Durchschnitt", borderColor: "#0b4b82", backgroundColor: "#0b4b82", tension: 0.3, data: [ 80.01773094345577 , 70.03505634022157 , 65.38274868933254 , 69.62492335936908 , 69.62492335936908 , 63.32396564688236 , 96.0301066764194 , 79.84904131783082 , 79.84904131783082 , 81.83130424718253 , 87.80924789941967 , 80.97711208580381 , 75.95498305454267 , 57.70208977997752 , 70.7175037839132 , 81.45396604900601 , 81.18045170559037 , 71.790657442302 , 89.41810785932056 , 89.0575438791867 , 67.31900968368012 , 88.33456620618121 , 66.26534123645803 , 95.08509304490863 , 93.60999233357975 , 91.24140757643168 , 88.45333645459402 , 62.18722228529743 , 71.60330735154612 , 90.07906632389424 , 93.65049489532281 , 81.79097442684592 , 81.60857182244968 , 86.1646123202221 , 85.36969079383655 ], yAxisID: 'y', }, { label: " €/m² Median", borderColor: "#76b4e8", backgroundColor: "#76b4e8", tension: 0.3, type: 'line', data: [ 71.1038961038961, 60, 66.55844155844156, 79.9, 79.9, 101.73323285606631, 111.23595505617978, 90.28763059460854, 90.28763059460854, 90.28763059460854, 95, 95, 90.28763059460854, 63.20134141622598, 78.76370887337985, 99.38837920489297, 99.38837920489297, 63.20134141622598, 90.28763059460854, 90.28763059460854, 63.20134141622598, 109, 61.78253579259641, 109, 109, 90.28763059460854, 75, 79.05138339920948, 106.20915032679738, 90.28763059460854, 106.20915032679738, 90.28763059460854, 106.20915032679738, 92.85714285714286, 81.17647058823529 ], } ] }, options: { legend: {display: true}, title: { display: true, text: 'Entwicklung der Quadratmeterpreise in Neuschönau', fontSize: 16, fontStyle: "normal", fontFamily: "'Open Sans',sans-serif" } } }); });