File talk:World energy consumption.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Source[edit]

SVG Chart

Mark and copy the following text. Paste it into a plain text file. The text file should have an svg extension, for example mychart.svg.

You can check the result with Toolforge tool SVGCheck (upload file temporarily), in W3Schools Tryit Editor (insert source code) or in Commons with File:Test.svg (upload as new file revision).

<?xml version="1.0" encoding="UTF-8" ?>
<!-- Generator: wikimedia.svg.chart, 2013-08-28 -->
<!-- modify viewBox (x,y,dx,dy) for position (x,y) and size (dx,dy) -->
<svg id="head"
  xmlns="http://www.w3.org/2000/svg"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  version="1.1"     
  viewBox="-10.45,-45.9,91.85,55.8"      
  width="750" height="460"
  font-family="Helvetica, Arial, Liberation Sans"
>

<!-- also a workaround for librsvg: a <rect> must be placed somewhere before text for a good display of text -->
<rect id="imagebackground" x="-10.45" y="-45.9" width="91.85" height="55.8" stroke-width="0.06" stroke="none" fill="white"/>

<title>plain text svg graphic</title>
<desc>   
  This svg graphic is to edit with an text editor.
  Please do not overwrite this file by saving with an image editor.
  ----------------&#13;   source: http://www.bp.com/statisticalreview
  http://www.bp.com/content/dam/bp/excel/Energy-Economics/statistical-review-2015/bp-statistical-review-of-world-energy-2015-workbook.xlsx
  all data per day, look in: 'bp-statistical-review-of-world-energy-2015-workbook.xlsx", tab 'Oil Consumption - barrels'
    -> values of tab 'Oil Consumption - tonnes' = tab 'Primary Energy - Cons by fuel'

  Nuclear, hydro, renewable energy in TWh

  Oil, gas, coal are to be calculated into TWh as follows:
  1 toe = 11.63 MWh (http://en.wikipedia.org/wiki/Tonne_of_oil_equivalent)
  BP thermal to electrical conversion efficiency: 38%, recalculated by use of:
        'statistical_review_of_world_energy_full_report_2012.xlsx", tab 'Primary Energy - Cons by fuel'
        i.e. nuclear 2011: 2648.7 TWh / 599.3 Mtoe = 4.4194 TWh/Mtoe; 4.4194 MWh/toe / 11.63 MWh/toe = 0.38 = 38%
   -> 1 toe = 4.4194 MWh energy production
   -> 1 Mio toe = 4.4194 TWh energy production
   -> 1000 Mio toe = 4.4 x 1000 TWh energy production
</desc>

<style id="styles" type="text/css"> <![CDATA[
  .graphgeneral {         /*-- general look of graphs and markers, e.g. in legend --*/
    stroke-width:    0.385;
    fill:            none;
    stroke-linejoin: round;
    stroke-linecap:  round;
  }
  .graphgeneralstretch {  /*-- general look of graphs and markers on a stretched chart --*/ 
    stroke-width:    0.175;
    fill:            none;
    stroke-linejoin: round;
    stroke-linecap:  round;
  } 
.graph1lineblank { /*-- look of graph 1 --*/ stroke: #B40404; } .graph1line { stroke: #B40404; }
.graph2lineblank { /*-- look of graph 2 --*/ stroke: #424242; } .graph2line { stroke: #424242; }
.graph3lineblank { /*-- look of graph 3 --*/ stroke: #00B2F7; } .graph3line { stroke: #00B2F7; }
.graph4lineblank { /*-- look of graph 4 --*/ stroke: #0431B4 ; } .graph4line { stroke: #0431B4 ; }
.graph5lineblank { /*-- look of graph 5 --*/ stroke: #FF6600  ; } .graph5line { stroke: #FF6600  ; }
.graph6lineblank { /*-- look of graph 6 --*/ stroke: #01DF01 ; } .graph6line { stroke: #01DF01 ; }
.graph7lineblank { /*-- look of graph 7 --*/ stroke: rgb(00%, 00%, 30%); } .graph7line { stroke: rgb(00%, 00%, 30%); }
.graph8lineblank { /*-- look of graph 8 --*/ stroke: rgb(00%, 30%, 00%); } .graph8line { stroke: rgb(00%, 30%, 00%); } .axisline { stroke: black; stroke-width: 0.193; stroke-linecap: round; } .titletext { font-size: 3.63px; } .axistext-x { font-size: 3.3px; } .axistext-x-number { font-size: 3.3px; } .axistext-y { font-size: 3.3px; } .axismark-main { stroke: black; stroke-width: 0.135; } .axismark-second { stroke: black; stroke-width: 0.135; }   .legendtext { font-size: 3.3px; text-anchor: start; } ]]></style> <defs> <!--== axis dashes definitions ==--> <!-- x-axis mark, modify "height" --> <pattern id="x-axismark-main" x="0" width="10" height="1.2" patternUnits="userSpaceOnUse"> <line x1="0" y1="-1" x2="0" y2="1.2" class="axismark-main"/> </pattern> <!-- y-axis mark, modify "width" --> <pattern id="y-axismark-main" width="1.2" height="10" patternUnits="userSpaceOnUse"> <line x1="-1" y1="0" x2="1.2" y2="0" class="axismark-main"/> </pattern> <!-- y-axis2 mark, modify "width" --> <pattern id="y-axis2mark-main" width="0.6" height="10" patternUnits="userSpaceOnUse"> <line x1="-1" y1="0" x2="11" y2="0" class="axismark-main"/> </pattern> </defs> <g transform="scale(1, -1)"> <!-- x axis, modify "x2" and "width" --> <rect id="x-axismark" x="4.7" y="-1.1" width="51.1" height="1.05" fill="url(#x-axismark-main)"/> <line id="x-axis" x1="0" y1="0" x2="55" y2="0" class="axisline"/> <!-- y axis, modify "height" --> <rect id="y-axismark" x="-1.05" y="-0.3" width="1.05" height="45" fill="url(#y-axismark-main)"/> <line id="y-axis" x1="0" y1="0" x2="0" y2="44" class="axisline"/> </g> <!-- x axis text, modify each value --> <g id="axistext-x" class="axistext-x-number" transform="translate(0, 4.3)" text-anchor="middle"> <text id="title-x" class="axistext-x" x="27.5" y="4.3" > <tspan dy="-0.05px"/>Year</text> </g> <!-- y axis text, modify each value --> <g id="axistext-y" class="axistext-y" text-anchor="end" transform="translate(-1.7, 0.8)">   <text y=  "-0"> <tspan dy="-0.05px"/>0</text>   <text y= "-11"> <tspan dy="-0.05px"/>5</text>   <text y= "-22"> <tspan dy="-0.05px"/>10</text>   <text y= "-33"> <tspan dy="-0.05px"/>15</text>   <text y= "-44"> <tspan dy="-0.05px"/>20</text>   <text y= "-55"> <tspan dy="-0.05px"/>25</text>   <text y= "-66"> <tspan dy="-0.05px"/>30</text>   <text y= "-77"> <tspan dy="-0.05px"/>35</text>   <text y= "-88"> <tspan dy="-0.05px"/>40</text>   <text y= "-99"> <tspan dy="-0.05px"/>45</text>   <text y="-110"> <tspan dy="-0.05px"/>50</text> <text id="title-y" x="22" y="-5.1" transform="rotate(-90)" text-anchor="middle" > <tspan dy="-0.05px"/>Energy, 1000 TWh per year</text> </g>
<!-- legend --> <g id="legend" class="legendtext" transform="translate(57.8, -39.6)">
<g id="legend-background" class="axismark-main"> <rect x="0" y="0" fill="white" width="22" height="8.9"/> </g>
  <g class="graphgeneral"><g class="graph1line"> <polyline id="legend-line1" points="1.1 2.54 3.85 2.54" marker-start="none" marker-end="none"/> </g></g> <text id="legend-text1" x="5" y="3.52"> <tspan dy="-0.05px"/>1st W </text>
  <g class="graphgeneral"><g class="graph2line"> <polyline id="legend-line2" points="1.1 6.17 3.85 6.17" marker-start="none" marker-end="none"/> </g></g> <text id="legend-text2" x="5" y="7.15"> <tspan dy="-0.05px"/>2nd W </text> </g> <!--====== graph data with origin values, you can manually copy or attach the values here ======--> <!-- modify displacement "translate" --> <defs> <g id="graphs">
<!-- graph 2 -->
<polyline id="graph2" points=" 25 40 40 10 55 35 70 10 85 40 "/> </g> <g id="graph1"> <!-- graph 1 --> <polyline id="graph1-line" stroke-width="0.175" points=" 15 40 30 10 45 35 60 10 75 40 "/> </g> </defs> <g class="graphgeneralstretch" transform="scale(1, -2.2) translate(-1965, -0)">
  <!-- graph 2 --> <use id="graphuse2p2" transform="translate(0.103, 0)" class="graph2lineblank" xlink:href="#graph2"/> <use id="graphuse2m2" transform="translate(-0.103, 0)" class="graph2lineblank" xlink:href="#graph2"/> <use id="graphuse2-1" transform="translate(0, 0)" class="graph2line" xlink:href="#graph2"/>
  <!-- graph 1 --> <use id="graphuse1p2" transform="translate(0.103, 0)" class="graph1lineblank" xlink:href="#graph1"/> <use id="graphuse1m2" transform="translate(-0.103, 0)" class="graph1lineblank" xlink:href="#graph1"/> <use id="graphuse1-1" transform="translate(0, 0)" class="graph1line" xlink:href="#graph1"/> </g> </svg>


Chart needs detailed description[edit]

Thanks for the great chart, but it is mandatory to source the data in detail in the file description. Currently there is a link to www.bp.com. The XL-spread sheet, from which probably all or most data is sourced, contains a total of 56 sheets and the file size amounts to more than one megabite, there has to be a better reference, especially when original figures get converted, as it seems to be the case here, where million tonnes oil equivalent is displayed as terawatt-hour in the chart. Also the term "World energy consumption" is too generic and can be misleading and cause confusion and subsequent errors if it is not clearly specified. I would do that, but first I need to know the source of original data. Would be a shame to drop the chart from wiki-articles just because the source cannot sufficiently be pin-pointed. Thx so much. Cheers, -- Rfassbind (talk) 15:14, 31 May 2015 (UTC)[reply]

These used the spreadsheet "BP-Statistical_Review_of_world_energy_2014_workbook-revised", using the tabs for consumption in Mtoe, which was multiplied by 0.004194 to obtain 1000 TWh, and rounded to three digits. The 2015 spreadsheet is available now, and the data will be updated in the same way. Delphi234 (talk) 03:35, 13 September 2015 (UTC)[reply]