Jump to content

Wikipedia:Graphics Lab/Map workshop/Archive/Feb 2023

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by ClueBot III (talk | contribs) at 00:33, 30 March 2023 (Archiving 1 discussion from Wikipedia:Graphics Lab/Map workshop. (BOT)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

US Map

Statewide opinion polling for the 2016 Republican Party presidential primaries
Key:
  Ted Cruz
3 states + 3 shared
  John Kasich
1 state
  Donald Trump
32 states + 3 shared
  3 or more candidates statistically tied for the lead
1 state
  No polling data in the past three months or three months before the election
10 states & D.C.
Article(s)
Opinion polling for the 2024 Republican Party presidential primaries
Request
Hi just wondering can somebody make a US Map with each state colored in the color of the leading candidate (2024) in the state polls like the One above. Thanks.La lopi (talk) 08:04, 3 March 2023 (UTC)
Latest polls by state.
  • Trump leading in Arizona, Arkansas, Illinois, Indiana, Massachusetts, Mississippi, Montana, Nevada, New Hampshire, Ohio, Oklahoma, Rhode Island, South Carolina, Texas, Utah, Virginia.
  • DeSantis is leading in Alabama, California, Florida, Georgia, Iowa, Kansas, Louisiana, Maryland, Michigan, Missouri, North Carolina, Pennsylvania, Tennessee.

Each state should be colored in the color of the leading candidate.La lopi (talk) 06:26, 8 March 2023 (UTC) As of 17 March 2023.La lopi (talk) 15:23, 16 March 2023 (UTC)

Discussion

Image's request under progression Request taken by cmɢʟeeτaʟκ 04:54, 19 March 2023 (UTC).

 Done

Thank you for doing it, it looks good. Is it ok every couple months after newer polls come I update you on it, on your page so you can update the map. Thanks again. La lopi (talk) 08:19, 19 March 2023 (UTC)

You're welcome. I'd rather you or other editors updated it yourselves by editing the SVG file directly in a text editor or using SVGedit.
To amend states (without adding candidates), change the USPS codes similar to what's already in it:
.trump   ,#AZ,#AR,#IL,#IN,#MA,#MS,#MT,#NV,#NH,#OH,#OK,#RI,#SC,#TX,#UT,#VA { fill:#283681; }
.desantis,#AL,#CA,#FL,#GA,#IA,#KS,#LA,#MD,#MI,#MO,#NC,#PA,#TN { fill:#9966cc; }
To add candidates, add a line similar to the second and third lines below:
  <g id="legend" transform="translate(560,520)">
   <g transform="translate(0,40)"><use xlink:href="#key" class="trump"/><text>Trump</text></g>
   <g transform="translate(0,80)"><use xlink:href="#key" class="desantis"/><text>DeSantis</text></g>
  </g>
(you may need to change the translate values to fit), and amend their states as above.
Good luck,
cmɢʟeeτaʟκ 09:53, 19 March 2023 (UTC)

{{tl|resolved|La lopi (talk) 07:01, 29 March 2023 (UTC)} La lopi (talk) 07:01, 29 March 2023 (UTC) {{resolved}}