'; 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/blieskastel/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 , 1 , 5 , 7 , 4 ]; qmPriceChartData.labels = [ "0 € / m² - 100 € / m²" , "100 € / m² - 200 € / m²" , "200 € / m² - 300 € / m²" , "300 € / m² - 400 € / m²" , "400 € / m²+" ]; qmPriceChartData.data = [ 8 , 7 , 1 , 1 , 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', 'März 2022', 'Apr. 2022', 'Mai 2022', 'Juni 2022', 'Juli 2022', 'Aug. 2022', 'Sept. 2022', 'Okt. 2022', 'Nov. 2022', 'Dez. 2022', 'Jan. 2023', 'Feb. 2023', 'März 2023', 'Apr. 2023', 'Mai 2023', 'Juni 2023', 'Juli 2023', 'Aug. 2023', 'Sept. 2023', 'Okt. 2023', 'Nov. 2023', 'Dez. 2023', 'Jan. 2024', 'März 2024', 'Apr. 2024', 'Juli 2024', 'Sept. 2024', 'Nov. 2024', 'Dez. 2024', 'Feb. 2025', 'März 2025' ], datasets: [ { label: " €/m² im Durchschnitt", borderColor: "#0b4b82", backgroundColor: "#0b4b82", tension: 0.3, data: [ 118.48089168358841 , 125.4345479274245 , 169.65325858065796 , 190.04840448270969 , 193.47327234114243 , 225.41666763115202 , 150.1129083902277 , 143.50697417805705 , 154.56096049179686 , 127.08661718961919 , 127.08661718961919 , 165.976177780715 , 169.1406667632918 , 145.6734827137796 , 170.88350367171742 , 155.4213891440433 , 169.33819466851466 , 163.95708629001405 , 152.56029984784396 , 129.124014524573 , 110.4346010858811 , 108.43355819874206 , 116.68527765858495 , 97.03671863326416 , 105.024673307037 , 158.94761654229524 , 142.5526896747827 , 130.62340309808073 , 148.59515790684603 , 144.96088266911224 , 156.6829307473896 , 139.0387820174735 , 169.79282203251609 , 98.54951719199683 , 104.66832207608992 , 104.21161362600446 , 112.99411875044859 ], yAxisID: 'y', }, { label: " €/m² Median", borderColor: "#76b4e8", backgroundColor: "#76b4e8", tension: 0.3, type: 'line', data: [ 103.13531353135313, 103.13531353135313, 120, 119.43319838056681, 120, 160.49382716049382, 146.55172413793105, 125, 137.79527559055117, 118.46001974333663, 118.46001974333663, 120, 107.46812386156648, 107.46812386156648, 135, 135, 185.71428571428572, 148.09782608695653, 139.7121083827265, 111.875, 111.875, 111.875, 145.34883720930233, 89.3854748603352, 93.18181818181819, 179.77528089887642, 179.77528089887642, 145.34883720930233, 179.77528089887642, 179.77528089887642, 189.95215311004785, 179.77528089887642, 203.00751879699249, 102.5390625, 102.5390625, 83.33333333333333, 119.04761904761905 ], } ] }, options: { legend: {display: true}, title: { display: true, text: 'Entwicklung der Quadratmeterpreise in Blieskastel', fontSize: 16, fontStyle: "normal", fontFamily: "'Open Sans',sans-serif" } } }); });