'; 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/holzwickede/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 , 2 , 13 , 0 , 1 ]; qmPriceChartData.labels = [ "0 € / m² - 100 € / m²" , "100 € / m² - 200 € / m²" , "200 € / m² - 300 € / m²" , "300 € / m² - 400 € / m²" , "400 € / m²+" ]; qmPriceChartData.data = [ 0 , 2 , 4 , 3 , 7 ]; 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', 'Mai 2024', 'Juli 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: [ 244.7657788718419 , 252.8612587811983 , 416.34006381989013 , 373.66294566868646 , 390.1898023946543 , 397.0039703529418 , 395.68439581377237 , 383.8877912404142 , 335.86633510231775 , 333.3839661864423 , 333.3839661864423 , 412.80455394500336 , 358.1996703808886 , 300.2049472472108 , 295.312556183186 , 268.5958747151379 , 220.2739291258685 , 269.34375255933014 , 271.0319656880108 , 382.2871403845201 , 443.7084963289299 , 399.8501160335486 , 373.6412452370114 , 327.9244927265004 , 380.7166269847478 , 353.3818100255112 , 372.55117360366063 , 292.09132168040327 , 375.04463440067343 , 359.44735993480623 , 407.48026782371227 , 370.72328421115566 , 421.80319898490933 , 304.9991861032476 , 292.695834562088 , 267.2483005360635 , 480.8450125243278 , 385.9868058351165 , 474.20373356704204 ], yAxisID: 'y', }, { label: " €/m² Median", borderColor: "#76b4e8", backgroundColor: "#76b4e8", tension: 0.3, type: 'line', data: [ 207.0126227208976, 169.76127320954907, 324.42748091603056, 424.24242424242425, 424.24242424242425, 344.0042089926747, 402.3809523809524, 400.2457002457002, 344.0042089926747, 304.76190476190476, 304.76190476190476, 327.8688524590164, 300, 283.14028314028315, 247.42268041237114, 246.29812438302073, 153.62637362637363, 240.05486968449932, 247.42268041237114, 394.42231075697214, 375.26881720430106, 345.4231433506045, 345.4231433506045, 316.5374677002584, 330.03300330033005, 346.51162790697674, 316.7701863354037, 285.7142857142857, 297, 297, 358.52713178294573, 290.69767441860466, 297, 297, 297, 294.11764705882354, 402.7027027027027, 368.42105263157896, 368.42105263157896 ], } ] }, options: { legend: {display: true}, title: { display: true, text: 'Entwicklung der Quadratmeterpreise in Holzwickede', fontSize: 16, fontStyle: "normal", fontFamily: "'Open Sans',sans-serif" } } }); });