If you want to generate an image not having gray areas (where first three datasets did not have data available in part of the 1800s), then change specification to <svg width="912.351" height="675" xmlns="http://www.w3.org/2000/svg" viewBox="287.649,0 912.351 675">
Each of the five warming stripes was automatically generated by the Excel "Warming stripes" spreadsheet linked below:
Warming stripes (five examples compared)
Warming stripes bar chart
Bar chart (vertical)
Pie chart
Line charts
Scatterplot
I've uploaded .xlsx (Microsoft Excel) spreadsheets that automatically generate XML code for charts in SVG format.
You simply paste or enter your data into the spreadsheet, and specify image dimensions, number of grid lines, font sizes, etc. The spreadsheet instantly and automatically generates a column of XML code that you simply copy and paste into a text editor and save as an ".svg" file. The spreadsheets produce lean SVG code, avoiding the "extra stuff" that Inkscape inserts. They should save you time in creating SVG charts.
Feedback and suggestions on my talk page are welcome. RCraig09 (talk) 23:41, 19 February 2021 (UTC)
Warming stripes — Accepts a single dataset and converts to SVG code portraying Ed Hawkins'warming stripes graphics. User chooses vertical or horizontal stripes; normal or reverse data ordering; or from a variety of geometric shapes (updated 17 May 2023). . . . . Click here to see examples of warming stripes embedded in different shapes.
Warming stripes bar chart — Accepts a single dataset and creates a conventional bar chart whose individual bars/columns are coloured according to Dr. Hawkins' warming stripes colour scheme. Alternate option: choose one colour for ascending bars and another colour for descending bars. (updated 28 August 2023)
Line charts — Accepts up to six datasets. (updated 30 August 2023)
Vertical bar charts (column charts) — Accepts up to six datasets. Toggle between clustered and stacked charts; user can adjust "Yfloor"—the Y level (usually=0) from which columns rise or fall; user chooses to keep or ignore negative input values. (updated 27 August 2023)
Horizontal bar charts — Accepts up to six datasets. Toggle between clustered and stacked charts; user can adjust "Yfloor"—the value (usually=0) from which bars extend; user chooses to keep or ignore negative input values. (updated 27 August 2023)
Scatter plots — Accepts up to five datasets. (updated 28 August 2023)
Pie charts — Accepts a single dataset of up to 36 items. (updated 17 May 2023)
Variable-width bar charts — Accepts up to six datasets; is like "Vertical bar charts", above, but user can choose different widths for different bars. (updated 27 August 2023)
Earlier example comparing only four datasets (PNG)
Related files
An Excel .xlsx spreadsheet automatically+ generated the XML code for the following SVG images:
20210502 Warming stripes comparison of Global Mean Surface Temperature datasets.svg +I manually combined five automatically generated images into this one
20210507 Warming stripes - ellipses - global warming.svg
20210522 Warming stripes - longitudes - meridians on a globe - global warming.svg
20210526 Warming stripes - hearts - global warming.svg
20210507 Warming stripes - triangles - global warming.svg
20210530 Warming stripes - diamonds - global warming.svg
20210604 Warming stripes - XLSX to SVG - various Diamond etc configurations - GIF.gif
20210507 Warming stripes - rectangles - global warming.svg
20210517 Warming stripes - pentagrams - stars - global warming.svg
20210508 Warming stripes - hexagons - global warming.svg
20210507 Warming stripes - octagons - global warming.svg
The spreadsheet user can toggle a switch to reverse the order of data, so red is in the center (or left side of first graphic) and blue is at the outside (or right side of first graphic).
The spreadsheet user can choose height and width (in pixels), to compress or expand shape vertically and horizontally, for example, to change an ellipse to a circle or a rectangle to a square.
Don't try to edit inside this colored box; make any comments about the spreadsheets or graphics at User talk:RCraig09 —RCraig09 (talk) 20:43, 20 May 2021 (UTC)
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
to share – to copy, distribute and transmit the work
to remix – to adapt the work
Under the following conditions:
attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.