{"id":1264,"date":"2024-12-25T11:05:43","date_gmt":"2024-12-25T11:05:43","guid":{"rendered":"https:\/\/www.polipolina.com\/?page_id=1264"},"modified":"2024-12-25T11:06:07","modified_gmt":"2024-12-25T11:06:07","slug":"saksan-osaltioiden-parlamentit","status":"publish","type":"page","link":"https:\/\/www.polipolina.com\/index.php\/saksan-osaltioiden-parlamentit\/","title":{"rendered":"Saksan osavaltioiden parlamenttien paikat puolueittain"},"content":{"rendered":"\n<h1>Saksan osavaltioiden parlamenttien paikat puolueittain<\/h1>\n<p>Suluissa milloin viimeiset osavaltiovaalit on pidetty<\/p>\n<div class=\"chart-container\" style=\"display: flex; flex-wrap: wrap; gap: 20px; justify-content: center;\">\n<\/div>\n<script src=\"https:\/\/cdn.jsdelivr.net\/npm\/chart.js\"><\/script>\n<script>\n  const data = [\n    {\n      state: \"Baden-W\u00fcrttemberg\",\n      seats: 154,\n      parties: { CDU_CSU: 42, SPD: 19, Vihre\u00e4t: 58, AfD: 17, Linke: 0, FDP: 18, BSW: 0, FW: 0, Others: 0 },\n      year: 2021,\n    },\n    {\n      state: \"Baijeri\",\n      seats: 203,\n      parties: { CDU_CSU: 85, SPD: 17, Vihre\u00e4t: 32, AfD: 32, Linke: 0, FDP: 0, BSW: 0, FW: 37, Others: 0 },\n      year: 2023,\n    },\n   { state: \"Berliini\", seats: 159, parties: { CDU_CSU: 52, SPD: 34, Vihre\u00e4t: 34, AfD: 17, Linke: 21, FDP: 0, BSW: 0, FW: 0, Others: 0 }, year: 2023, },\n{ state: \"Brandenburg\", seats: 88, parties: { CDU_CSU: 12, SPD: 32, Vihre\u00e4t: 0, AfD: 30, Linke:0, FDP: 0, BSW: 14, FW: 0, Others: 0 }, year: 2023, },\n{ state: \"Bremen\", seats: 87, parties: { CDU_CSU: 24, SPD: 28, Vihre\u00e4t: 10, AfD: 1, Linke: 10, FDP: 5, BSW: 0, FW: 0, Others: 0 }, year: 2023, },\n\n{ state: \"Hampuri\", seats: 123, parties: { CDU_CSU: 15, SPD: 53, Vihre\u00e4t: 33, AfD: 17, Linke: 12, FDP: 3, BSW: 1, FW: 0, Others: 0 }, year: 2020, },\n\n{ state: \"Hessen\", seats: 133, parties: { CDU_CSU: 52, SPD: 23, Vihre\u00e4t: 22, AfD: 28, Linke: 0, FDP: 8, BSW: 0, FW: 0, Others: 0 }, year: 2023, },\n{ state: \"Ala-Saksi\", seats: 146, parties: { CDU_CSU: 47, SPD: 57, Vihre\u00e4t: 24, AfD: 18, Linke: 14, FDP: 9, BSW: 0, FW: 0, Others: 0 }, year: 2023, },\n\n{ state: \"Mecklenburg-Vorpommern\", seats: 79, parties: { CDU_CSU: 12, SPD: 34, Vihre\u00e4t: 5, AfD: 14, Linke: 9, FDP: 5, BSW: 0, FW: 0, Others: 0 }, year: 2021, },\n\n{ state: \"Nordrhein-Westfalen \", seats: 195, parties: { CDU_CSU: 76, SPD: 56, Vihre\u00e4t: 39, AfD: 12, Linke: 0, FDP: 12, BSW: 0, FW: 0, Others: 0 }, year: 2022, },\n\n{ state: \"Rheinland-Pfalz\", seats: 101, parties: { CDU_CSU: 31, SPD: 39, Vihre\u00e4t: 9, AfD: 9, Linke: 0, FDP: 6, BSW: 1, FW: 6, Others: 0 }, year: 2021, },\n\n\n{ state: \"Saarland\", seats: 51, parties: { CDU_CSU: 19, SPD: 29, Vihre\u00e4t: 0, AfD: 3, Linke: 0, FDP: 0, BSW: 0, FW: 0, Others: 0 }, year: 2022, },\n{ state: \"Saksi\", seats: 120, parties: { CDU_CSU: 41, SPD: 10, Vihre\u00e4t: 7, AfD: 40, Linke: 6, FDP: 0, BSW: 15, FW: 1, Others: 0 }, year: 2022, },\n\n\n{ state: \"Saksi-Anhalt\", seats: 97, parties: { CDU_CSU: 40, SPD: 9, Vihre\u00e4t: 6, AfD: 23, Linke: 12, FDP: 7, BSW: 0, FW: 0, Others: 0 }, year: 2021, },\n{ state: \"Schleswig-Holstein\", seats: 69, parties: { CDU_CSU: 34, SPD: 12, Vihre\u00e4t: 14, AfD: 0, Linke: 0, FDP: 5, BSW: 0, FW: 0, Others: 4 }, year: 2022, },\n{ state: \"Th\u00fcringen\", seats: 88, parties: { CDU_CSU: 23, SPD: 6, Vihre\u00e4t: 0, AfD: 32, Linke: 12, FDP: 0, BSW: 15, FW: 0, Others: 0 }, year: 2024, },\n\n\n    \/\/ Lis\u00e4\u00e4 muut osavaltiot\n  ];\n\n  const colors = {\n    CDU_CSU: \"#000000\",\n    SPD: \"#E3000F\",\n    Vihre\u00e4t: \"#64A12D\",\n    AfD: \"#0088CC\",\n    Linke: \"#BE3075\",\n    FDP: \"#FFD500\",\n    BSW: \"#808080\",\n    FW: \"#F28E00\",\n    Others: \"#A9A9A9\",\n  };\n\n  const container = document.querySelector(\".chart-container\");\n\n  data.forEach(({ state, parties, year }) => {\n    const chartBox = document.createElement(\"div\");\n    chartBox.style.width = \"400px\";\n    chartBox.style.height = \"400px\";\n\n    const canvas = document.createElement(\"canvas\");\n    chartBox.appendChild(canvas);\n    container.appendChild(chartBox);\n\n    new Chart(canvas, {\n      type: \"bar\",\n      data: {\n        labels: Object.keys(parties),\n        datasets: [\n          {\n            label: `Paikat (${year})`,\n            data: Object.values(parties),\n            backgroundColor: Object.keys(parties).map(party => colors[party]),\n          },\n        ],\n      },\n      options: {\n        plugins: {\n          title: {\n            display: true,\n            text: state,\n          },\n        },\n        responsive: true,\n        maintainAspectRatio: false,\n        scales: {\n          x: {\n            title: { display: true, text: \"Puolueet\" },\n          },\n          y: {\n            title: { display: true, text: \"Paikat\" },\n            beginAtZero: true,\n          },\n        },\n      },\n    });\n  });\n<\/script>\n\n","protected":false},"excerpt":{"rendered":"<p>Saksan osavaltioiden parlamenttien paikat puolueittain Suluissa milloin viimeiset osavaltiovaalit on pidetty<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1264","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.polipolina.com\/index.php\/wp-json\/wp\/v2\/pages\/1264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.polipolina.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.polipolina.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.polipolina.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.polipolina.com\/index.php\/wp-json\/wp\/v2\/comments?post=1264"}],"version-history":[{"count":1,"href":"https:\/\/www.polipolina.com\/index.php\/wp-json\/wp\/v2\/pages\/1264\/revisions"}],"predecessor-version":[{"id":1265,"href":"https:\/\/www.polipolina.com\/index.php\/wp-json\/wp\/v2\/pages\/1264\/revisions\/1265"}],"wp:attachment":[{"href":"https:\/\/www.polipolina.com\/index.php\/wp-json\/wp\/v2\/media?parent=1264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}