Aller au contenu

Fichier:Opinion polling for the 2021 Scottish Parliament election (constituency vote).svg

Le contenu de la page n’est pas pris en charge dans d’autres langues.
Une page de Wikipédia, l'encyclopédie libre.

Fichier d’origine(Fichier SVG, nominalement de 844 × 559 pixels, taille : 178 kio)

Ce fichier et sa description proviennent de Wikimedia Commons.

Description

Description
English: Each dot represents one opinion poll result. Trendlines are local regressions (LOESS) with a span of 0.25
 
SNP
How to update this graph
  • Open the online Vega editor
  • Click on the dropdown menu in the top-left corner and select "Vega-Lite"
  • Copy the syntax in the box below, and paste it into the editing area.
Graph syntax
{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "description": "Opinion polling for the 2021 Scottish Parliament election",
  "width": 800,
  "height": 500,
  "data": {
    "values": [
      {
        "Date": "2021-04-04",
        "SNP": 53,
        "Conservative": 20,
        "Labour": 18,
        "Lib_Dems": 6,
        "Green": 2
      },
      {
        "Date": "2021-04-01",
        "SNP": 49,
        "Conservative": 22,
        "Labour": 20,
        "Lib_Dems": 6,
        "Green": 2
      },
      {
        "Date": "2021-03-30",
        "SNP": 49,
        "Conservative": 21,
        "Labour": 20,
        "Lib_Dems": 9,
        "Green": 1
      },
      {
        "Date": "2021-03-26",
        "SNP": 50,
        "Conservative": 21,
        "Labour": 17,
        "Lib_Dems": 5,
        "Green": 4
      },
      {
        "Date": "2021-03-19",
        "SNP": 48,
        "Conservative": 21,
        "Labour": 20,
        "Lib_Dems": 8,
        "Green": 1
      },
      {
        "Date": "2021-03-18",
        "SNP": 50,
        "Conservative": 21,
        "Labour": 20,
        "Lib_Dems": 8,
        "Green": 1
      },
      {
        "Date": "2021-03-16",
        "SNP": 46,
        "Conservative": 24,
        "Labour": 20,
        "Lib_Dems": 6,
        "Green": 4
      },
      {
        "Date": "2021-03-12",
        "SNP": 46,
        "Conservative": 21,
        "Labour": 23,
        "Lib_Dems": 8,
        "Green": 1
      },
      {
        "Date": "2021-03-10",
        "SNP": 48,
        "Conservative": 23,
        "Labour": 20,
        "Lib_Dems": 8,
        "Green": null
      },
      {
        "Date": "2021-03-08",
        "SNP": 52,
        "Conservative": 22,
        "Labour": 17,
        "Lib_Dems": 6,
        "Green": 2
      },
      {
        "Date": "2021-03-05",
        "SNP": 47,
        "Conservative": 23,
        "Labour": 20,
        "Lib_Dems": 7,
        "Green": 2
      },
      {
        "Date": "2021-02-25",
        "SNP": 50,
        "Conservative": 21,
        "Labour": 20,
        "Lib_Dems": 7,
        "Green": 3
      },
      {
        "Date": "2021-02-21",
        "SNP": 52,
        "Conservative": 23,
        "Labour": 15,
        "Lib_Dems": 5,
        "Green": 3
      },
      {
        "Date": "2021-02-09",
        "SNP": 54,
        "Conservative": 23,
        "Labour": 16,
        "Lib_Dems": 5,
        "Green": 2
      },
      {
        "Date": "2021-01-22",
        "SNP": 52,
        "Conservative": 20,
        "Labour": 17,
        "Lib_Dems": 6,
        "Green": 3
      },
      {
        "Date": "2021-01-13",
        "SNP": 51,
        "Conservative": 19,
        "Labour": 19,
        "Lib_Dems": 9,
        "Green": null
      },
      {
        "Date": "2021-01-13",
        "SNP": 53,
        "Conservative": 19,
        "Labour": 18,
        "Lib_Dems": 6,
        "Green": null
      },
      {
        "Date": "2020-12-15",
        "SNP": 55,
        "Conservative": 20,
        "Labour": 16,
        "Lib_Dems": 6,
        "Green": null
      },
      {
        "Date": "2020-12-09",
        "SNP": 53,
        "Conservative": 20,
        "Labour": 20,
        "Lib_Dems": 6,
        "Green": 1
      },
      {
        "Date": "2020-11-26",
        "SNP": 55,
        "Conservative": 22,
        "Labour": 14,
        "Lib_Dems": 6,
        "Green": 1
      },
      {
        "Date": "2020-11-11",
        "SNP": 53,
        "Conservative": 21,
        "Labour": 18,
        "Lib_Dems": 5,
        "Green": 3
      },
      {
        "Date": "2020-11-10",
        "SNP": 56,
        "Conservative": 19,
        "Labour": 15,
        "Lib_Dems": 6,
        "Green": 2
      },
      {
        "Date": "2020-11-03",
        "SNP": 54,
        "Conservative": 19,
        "Labour": 18,
        "Lib_Dems": 8,
        "Green": null
      },
      {
        "Date": "2020-10-09",
        "SNP": 58,
        "Conservative": 19,
        "Labour": 13,
        "Lib_Dems": 8,
        "Green": 1
      },
      {
        "Date": "2020-10-09",
        "SNP": 50,
        "Conservative": 23,
        "Labour": 18,
        "Lib_Dems": 6,
        "Green": null
      },
      {
        "Date": "2020-09-21",
        "SNP": 58,
        "Conservative": 19,
        "Labour": 13,
        "Lib_Dems": 8,
        "Green": 2
      },
      {
        "Date": "2020-09-07",
        "SNP": 53,
        "Conservative": 20,
        "Labour": 18,
        "Lib_Dems": 7,
        "Green": null
      },
      {
        "Date": "2020-08-13",
        "SNP": 51,
        "Conservative": 24,
        "Labour": 17,
        "Lib_Dems": 6,
        "Green": null
      },
      {
        "Date": "2020-08-10",
        "SNP": 57,
        "Conservative": 20,
        "Labour": 14,
        "Lib_Dems": 8,
        "Green": 1
      },
      {
        "Date": "2020-07-03",
        "SNP": 55,
        "Conservative": 20,
        "Labour": 15,
        "Lib_Dems": 6,
        "Green": 3
      },
      {
        "Date": "2020-06-05",
        "SNP": 53,
        "Conservative": 21,
        "Labour": 16,
        "Lib_Dems": 6,
        "Green": 3
      },
      {
        "Date": "2020-05-05",
        "SNP": 53,
        "Conservative": 23,
        "Labour": 15,
        "Lib_Dems": 5,
        "Green": 3
      },
      {
        "Date": "2020-04-27",
        "SNP": 54,
        "Conservative": 23,
        "Labour": 12,
        "Lib_Dems": 8,
        "Green": 2
      },
      {
        "Date": "2020-03-26",
        "SNP": 51,
        "Conservative": 26,
        "Labour": 14,
        "Lib_Dems": 6,
        "Green": 3
      },
      {
        "Date": "2020-01-31",
        "SNP": 50,
        "Conservative": 26,
        "Labour": 14,
        "Lib_Dems": 7,
        "Green": 3
      },
      {
        "Date": "2020-01-22",
        "SNP": 51,
        "Conservative": 23,
        "Labour": 17,
        "Lib_Dems": 7,
        "Green": null
      },
      {
        "Date": "2019-12-06",
        "SNP": 43,
        "Conservative": 26,
        "Labour": 19,
        "Lib_Dems": 8,
        "Green": 2
      },
      {
        "Date": "2019-12-03",
        "SNP": 46,
        "Conservative": 26,
        "Labour": 14,
        "Lib_Dems": 11,
        "Green": 1
      },
      {
        "Date": "2019-11-22",
        "SNP": 43,
        "Conservative": 26,
        "Labour": 17,
        "Lib_Dems": 9,
        "Green": 2
      },
      {
        "Date": "2019-10-11",
        "SNP": 42,
        "Conservative": 21,
        "Labour": 19,
        "Lib_Dems": 10,
        "Green": 3
      },
      {
        "Date": "2019-09-03",
        "SNP": 45,
        "Conservative": 23,
        "Labour": 13,
        "Lib_Dems": 12,
        "Green": 2
      },
      {
        "Date": "2019-06-20",
        "SNP": 42,
        "Conservative": 20,
        "Labour": 16,
        "Lib_Dems": 11,
        "Green": 3
      },
      {
        "Date": "2019-05-17",
        "SNP": 41,
        "Conservative": 20,
        "Labour": 18,
        "Lib_Dems": 8,
        "Green": 3
      },
      {
        "Date": "2019-04-26",
        "SNP": 46,
        "Conservative": 22,
        "Labour": 16,
        "Lib_Dems": 7,
        "Green": 3
      },
      {
        "Date": "2019-04-24",
        "SNP": 40,
        "Conservative": 22,
        "Labour": 20,
        "Lib_Dems": 6,
        "Green": 3
      },
      {
        "Date": "2019-03-06",
        "SNP": 41,
        "Conservative": 27,
        "Labour": 19,
        "Lib_Dems": 8,
        "Green": 3
      },
      {
        "Date": "2019-03-04",
        "SNP": 43,
        "Conservative": 24,
        "Labour": 22,
        "Lib_Dems": 9,
        "Green": null
      },
      {
        "Date": "2018-12-05",
        "SNP": 41,
        "Conservative": 25,
        "Labour": 23,
        "Lib_Dems": 6,
        "Green": 3
      },
      {
        "Date": "2018-11-07",
        "SNP": 39,
        "Conservative": 27,
        "Labour": 24,
        "Lib_Dems": 6,
        "Green": 3
      },
      {
        "Date": "2018-10-21",
        "SNP": 38,
        "Conservative": 26,
        "Labour": 25,
        "Lib_Dems": 9,
        "Green": 1
      },
      {
        "Date": "2018-10-05",
        "SNP": 44,
        "Conservative": 24,
        "Labour": 23,
        "Lib_Dems": 8,
        "Green": null
      },
      {
        "Date": "2018-10-04",
        "SNP": 41,
        "Conservative": 26,
        "Labour": 21,
        "Lib_Dems": 6,
        "Green": 3
      },
      {
        "Date": "2018-10-02",
        "SNP": 43,
        "Conservative": 24,
        "Labour": 23,
        "Lib_Dems": 9,
        "Green": null
      },
      {
        "Date": "2018-07-10",
        "SNP": 44,
        "Conservative": 24,
        "Labour": 21,
        "Lib_Dems": 9,
        "Green": null
      },
      {
        "Date": "2018-06-27",
        "SNP": 41,
        "Conservative": 27,
        "Labour": 22,
        "Lib_Dems": 6,
        "Green": 2
      },
      {
        "Date": "2018-06-13",
        "SNP": 40,
        "Conservative": 28,
        "Labour": 24,
        "Lib_Dems": 6,
        "Green": 2
      },
      {
        "Date": "2018-06-05",
        "SNP": 41,
        "Conservative": 27,
        "Labour": 22,
        "Lib_Dems": 6,
        "Green": 2
      },
      {
        "Date": "2018-03-28",
        "SNP": 40,
        "Conservative": 28,
        "Labour": 22,
        "Lib_Dems": 6,
        "Green": 3
      },
      {
        "Date": "2018-01-28",
        "SNP": 42,
        "Conservative": 25,
        "Labour": 25,
        "Lib_Dems": 6,
        "Green": null
      },
      {
        "Date": "2018-01-16",
        "SNP": 38,
        "Conservative": 26,
        "Labour": 23,
        "Lib_Dems": 7,
        "Green": 3
      },
      {
        "Date": "2017-12-20",
        "SNP": 39,
        "Conservative": 26,
        "Labour": 25,
        "Lib_Dems": 6,
        "Green": 2
      },
      {
        "Date": "2017-12-05",
        "SNP": 39,
        "Conservative": 24,
        "Labour": 28,
        "Lib_Dems": 7,
        "Green": null
      },
      {
        "Date": "2017-11-30",
        "SNP": 39,
        "Conservative": 24,
        "Labour": 25,
        "Lib_Dems": 8,
        "Green": null
      },
      {
        "Date": "2017-10-05",
        "SNP": 42,
        "Conservative": 25,
        "Labour": 25,
        "Lib_Dems": 5,
        "Green": 2
      },
      {
        "Date": "2017-09-12",
        "SNP": 42,
        "Conservative": 26,
        "Labour": 25,
        "Lib_Dems": 7,
        "Green": null
      },
      {
        "Date": "2017-09-07",
        "SNP": 42,
        "Conservative": 28,
        "Labour": 22,
        "Lib_Dems": 6,
        "Green": 2
      },
      {
        "Date": "2017-03-14",
        "SNP": 51,
        "Conservative": 24,
        "Labour": 14,
        "Lib_Dems": 6,
        "Green": 4
      },
      {
        "Date": "2016-11-29",
        "SNP": 48,
        "Conservative": 25,
        "Labour": 15,
        "Lib_Dems": 6,
        "Green": 3
      },
      {
        "Date": "2016-10-04",
        "SNP": 51,
        "Conservative": 21,
        "Labour": 18,
        "Lib_Dems": 7,
        "Green": null
      },
      {
        "Date": "2016-08-31",
        "SNP": 52,
        "Conservative": 21,
        "Labour": 16,
        "Lib_Dems": 5,
        "Green": 3
      },
      {
        "Date": "2016-06-28",
        "SNP": 50,
        "Conservative": 21,
        "Labour": 18,
        "Lib_Dems": 8,
        "Green": null
      },
      {
        "Date": "2016-05-05",
        "PreSNP": 46.5,
        "PreConservative": 22,
        "PreLabour": 22.6,
        "PreLib_Dems": 7.8,
        "PreGreen": 0.6
      }
    ]
  },
  "encoding": {
    "x": {
      "field": "Date",
      "type": "temporal",
      "scale": {"domain": ["2016-05-06", "2021-05-06"]},
      "axis": {
        "title": "Date",
        "tickCount": 24,
        "labelExpr": "[timeFormat(datum.value, '%b'), timeFormat(datum.value, '%m') == '01' ? timeFormat(datum.value, '%Y') : '']",
        "gridWidth": {
          "condition": {
            "test": {"field": "value", "timeUnit": "month", "equal": 1},
            "value": 1
          },
          "value": 0.5
        },
        "tickWidth": {
          "condition": {
            "test": {
              "and": [
                {"field": "Date", "timeUnit": "month", "equal": 1},
                {"field": "Date", "timeUnit": "month", "equal": 2}
              ]
            },
            "value": 1
          },
          "value": 0.5
        }
      }
    },
    "y": {
      "type": "quantitative",
      "scale": {"domain": ["0", "60"]},
      "axis": {"title": "%Support", "tickCount": 10}
    }
  },
  "layer": [
    {
      "mark": {
        "type": "point",
        "color": "#fdf38e",
        "fill": "#fdf38e",
        "size": 10
      },
      "encoding": {"y": {"field": "SNP", "title": "SNP"}}
    },
    {
      "mark": {
        "type": "point",
        "color": "#0087dc",
        "fill": "#0087dc",
        "size": 10
      },
      "encoding": {"y": {"field": "Conservative", "title": "Conservative"}}
    },
    {
      "mark": {
        "type": "point",
        "color": "#e4003b",
        "fill": "#e4003b",
        "size": 10
      },
      "encoding": {"y": {"field": "Labour", "title": "Labour"}}
    },
    {
      "mark": {
        "type": "point",
        "color": "#00b140",
        "fill": "#00b140",
        "size": 10
      },
      "encoding": {"y": {"field": "Green", "title": "Green"}}
    },
    {
      "mark": {
        "type": "point",
        "color": "#faa61a",
        "fill": "#faa61a",
        "size": 10
      },
      "encoding": {"y": {"field": "Lib_Dems", "title": "Liberal Democrats"}}
    },
    {
      "mark": {"type": "square", "fill": "#fdf38e", "size": 30, "opacity": 1},
      "encoding": {"y": {"field": "PreSNP", "title": "PreSNP"}}
    },
    {
      "mark": {"type": "square", "fill": "#0087dc", "size": 30, "opacity": 1},
      "encoding": {
        "y": {"field": "PreConservative", "title": "PreConservative"}
      }
    },
    {
      "mark": {"type": "square", "fill": "#e4003b", "size": 30, "opacity": 1},
      "encoding": {"y": {"field": "PreLabour", "title": "PreLabour"}}
    },
    {
      "mark": {"type": "square", "fill": "#00b140", "size": 30, "opacity": 1},
      "encoding": {"y": {"field": "PreGreen", "title": "PreGreen"}}
    },
    {
      "mark": {"type": "square", "fill": "#faa61a", "size": 30, "opacity": 1},
      "encoding": {
        "y": {"field": "PreLib_Dems", "title": "PreLiberal Democrats"}
      }
    },
    {
      "mark": {
        "type": "line",
        "color": "#fdf38e",
        "interpolate": "monotone",
        "size": 3
      },
      "transform": [{"loess": "SNP", "on": "Date", "bandwidth": 0.25}],
      "encoding": {"y": {"field": "SNP", "type": "quantitative"}}
    },
    {
      "mark": {
        "type": "line",
        "color": "#0087dc",
        "interpolate": "monotone",
        "size": 3
      },
      "transform": [{"loess": "Conservative", "on": "Date", "bandwidth": 0.25}],
      "encoding": {"y": {"field": "Conservative", "type": "quantitative"}}
    },
    {
      "mark": {
        "type": "line",
        "color": "#e4003b",
        "interpolate": "monotone",
        "size": 3
      },
      "transform": [{"loess": "Labour", "on": "Date", "bandwidth": 0.25}],
      "encoding": {"y": {"field": "Labour", "type": "quantitative"}}
    },
    {
      "mark": {
        "type": "line",
        "color": "#00b140",
        "interpolate": "monotone",
        "size": 3
      },
      "transform": [{"loess": "Green", "on": "Date", "bandwidth": 0.25}],
      "encoding": {"y": {"field": "Green", "type": "quantitative"}}
    },
    {
      "mark": {
        "type": "line",
        "color": "#faa61a",
        "interpolate": "monotone",
        "size": 3
      },
      "transform": [{"loess": "Lib_Dems", "on": "Date", "bandwidth": 0.25}],
      "encoding": {"y": {"field": "Lib_Dems", "type": "quantitative"}}
    }
  ],
  "config": {}
}
  • Scroll to the top of the editing area. There will be a list of values in this format:
      {
        "Date": "2021-02-09",
        "SNP": 54,
        "Conservative": 23,
        "Labour": 16,
        "Lib_Dems": 5,
        "Green": 2
      },
  • Copy the text, and paste it on a new line at the top of the list, below where it says "values": [
  • Replace the numbers with the results of the poll you wish to add, along with the date in YYYY-MM-DD format.
  • Make sure all closing curly braces have a comma after them, apart from the last one in the list (this tells the program where the list ends).
  • Check that the graph is showing up correctly on the right hand side of the screen, and that there are no warnings in the "logs" section.
  • Click the "export" button, and download the graph in SVG format
  • Before closing the Vega editor, copy the new syntax and update the file's description so that the next editor can use the newest version
  • Click the "upload a new version of this file" button
  • Upload the SVG using the form

If you can't see the new version after uploading, press Ctrl+F5 to bypass your browser's cache.

A graph showing regional voting intention can be found here.
Date
Source Travail personnel
Auteur PinkPanda272

Conditions d’utilisation

Moi, en tant que détenteur des droits d’auteur sur cette œuvre, je la publie sous la licence suivante :
w:fr:Creative Commons
paternité partage à l’identique
Vous êtes libre :
  • de partager – de copier, distribuer et transmettre cette œuvre
  • d’adapter – de modifier cette œuvre
Sous les conditions suivantes :
  • paternité – Vous devez donner les informations appropriées concernant l'auteur, fournir un lien vers la licence et indiquer si des modifications ont été faites. Vous pouvez faire cela par tout moyen raisonnable, mais en aucune façon suggérant que l’auteur vous soutient ou approuve l’utilisation que vous en faites.
  • partage à l’identique – Si vous modifiez, transformez, ou vous basez sur cette œuvre, vous devez distribuer votre contribution sous la même licence ou une licence compatible avec celle de l’original.

Légendes

Ajoutez en une ligne la description de ce que représente ce fichier
Graph of opinion polls for the constituency vote in the 2021 Scottish Parliament election

Éléments décrits dans ce fichier

dépeint

image/svg+xml

Historique du fichier

Cliquer sur une date et heure pour voir le fichier tel qu'il était à ce moment-là.

(les plus récentes | les plus anciennes) Voir (10 plus récentes | ) (10 | 20 | 50 | 100 | 250 | 500)
Date et heureVignetteDimensionsUtilisateurCommentaire
actuel7 avril 2021 à 18:49Vignette pour la version du 7 avril 2021 à 18:49844 × 559 (178 kio)PinkPanda272added poll
4 avril 2021 à 16:58Vignette pour la version du 4 avril 2021 à 16:58844 × 559 (176 kio)PinkPanda272added poll
3 avril 2021 à 16:24Vignette pour la version du 3 avril 2021 à 16:24844 × 559 (173 kio)PinkPanda272added poll
30 mars 2021 à 16:58Vignette pour la version du 30 mars 2021 à 16:58844 × 559 (171 kio)PinkPanda272added poll
25 mars 2021 à 16:16Vignette pour la version du 25 mars 2021 à 16:16844 × 559 (169 kio)PinkPanda272added poll
22 mars 2021 à 13:55Vignette pour la version du 22 mars 2021 à 13:55844 × 559 (166 kio)PinkPanda272added poll
21 mars 2021 à 19:43Vignette pour la version du 21 mars 2021 à 19:43844 × 559 (164 kio)PinkPanda272fix error
21 mars 2021 à 19:40Vignette pour la version du 21 mars 2021 à 19:40844 × 559 (163 kio)PinkPanda272added poll
19 mars 2021 à 17:16Vignette pour la version du 19 mars 2021 à 17:16844 × 559 (161 kio)PinkPanda272Changed moving average to LOESS
18 mars 2021 à 14:04Vignette pour la version du 18 mars 2021 à 14:04844 × 559 (165 kio)PinkPanda272Added poll
(les plus récentes | les plus anciennes) Voir (10 plus récentes | ) (10 | 20 | 50 | 100 | 250 | 500)

Métadonnées