This document was Tentatively checked as SVG 1.1

Result: Tentatively passed, 1 warning(s)
:
: utf-8
: SVG 1.1
Root Element: svg
Root Namespace: http://www.w3.org/2000/svg
Options

Help on the options is available.

Notes and Potential Issues

The following notes and warnings highlight missing or conflicting information which caused the validator to perform some guesswork prior to validation, or other things affecting the output below. If the guess or fallback is incorrect, it could make validation results entirely incoherent. It is highly recommended to check these potential issues, and, if necessary, fix them and re-validate the document.

  1. Warning DOCTYPE Override in effect!

    The DOCTYPE Declaration for "SVG 1.1" has been inserted at the start of the document, but even if no errors are shown below the document will not be Valid until you add the new DOCTYPE Declaration.

Congratulations

The document located at <https://upload.wikimedia.org/wikipedia/commons/9/9a/US_Natural_Gas_Production.svg> was tentatively checked as SVG 1.1. This means that with the use of some fallback or override mechanism, we successfully performed a formal validation of it. In other words, the document would validate as SVG 1.1 if you changed the markup to match the changes we have performed automatically, but it will not be valid until you make these changes. The parser implementations we used for this check are based on OpenSP (SGML/XML) and libxml2 (XML).

Linking to this result

If you would like to create a link to this page (i.e., this validation result) to make it easier to revalidate this page in the future or to allow others to validate your page, the URI is <http://validator.w3.org/check?uri=https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2F9%2F9a%2FUS_Natural_Gas_Production.svg;ss=1> (or you can just add the current page to your bookmarks or hotlist).

Validating CSS Style Sheets

If you use CSS in your document, you can check it using the W3C CSS Validation Service.

↑ Top

Source Listing

Below is the source input I used for this validation:

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!-- Generator: wikimedia.svg.chart, 2013-08-28 -->
  3. <!-- modify viewBox (x,y,dx,dy) for position (x,y) and size (dx,dy) -->
  4. <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg id="head"
  5. xmlns="http://www.w3.org/2000/svg"
  6. xmlns:xlink="http://www.w3.org/1999/xlink"
  7. version="1.1"
  8. viewBox="-22.8,-89.8,169.2,111.4"
  9. width="750" height="490"
  10. font-family="Helvetica, Arial"
  11. >
  12. <!-- also a workaround for librsvg: a <rect> must be placed somewhere before text for a good display of text -->
  13. <rect id="imagebackground" x="-22.8" y="-89.8" width="169.2" height="111.4" stroke-width="0.12" stroke="none" fill="white"/>
  14. <title>U.S. Natural Gas Production</title>
  15. <desc>
  16. This svg graphic is to edit with an text editor.
  17. Please do not overwrite this file by saving with an image editor.
  18. ----------------
  19. Source: Energy Information Administration
  20. Available from: http://tonto.eia.gov/dnav/ng/hist/n9050us2a.htm
  21. 1 MMcf = 28 317 m3, 0.353147 MMcf = 10 000 m3, 0.706293 MMcf = 20 000 m3
  22. 2011: 24 036 352 MMcf = 680 633 692 215 m3
  23. </desc>
  24. <style id="styles" type="text/css"> <![CDATA[
  25. .graphgeneral { /*-- general look of graphs and markers, e.g. in legend --*/
  26. stroke-width: 0.84;
  27. fill: none;
  28. stroke-linejoin: round;
  29. stroke-linecap: round;
  30. }
  31. .graphgeneralstretch { /*-- general look of graphs and markers on a stretched chart --*/
  32. stroke-width: 0.34;
  33. fill: none;
  34. stroke-linejoin: round;
  35. stroke-linecap: round;
  36. }
  37. .graph1lineblank { /*-- look of graph 1 --*/
  38. stroke: rgb(00%, 00%, 60%);
  39. }
  40. .graph1line {
  41. stroke: rgb(00%, 00%, 60%);
  42. }
  43. .graph2lineblank { /*-- look of graph 2 --*/
  44. stroke: rgb(75%, 10%, 10%);
  45. }
  46. .graph2line {
  47. stroke: rgb(75%, 10%, 10%);
  48. }
  49. .graph3lineblank { /*-- look of graph 3 --*/
  50. stroke: rgb(00%, 60%, 00%);
  51. }
  52. .graph3line {
  53. stroke: rgb(00%, 60%, 00%);
  54. }
  55. .graph4lineblank { /*-- look of graph 4 --*/
  56. stroke: rgb(00%, 60%, 60%);
  57. }
  58. .graph4line {
  59. stroke: rgb(00%, 60%, 60%);
  60. }
  61. .graph5lineblank { /*-- look of graph 5 --*/
  62. stroke: rgb(60%, 00%, 60%);
  63. }
  64. .graph5line {
  65. stroke: rgb(60%, 00%, 60%);
  66. }
  67. .graph6lineblank { /*-- look of graph 6 --*/
  68. stroke: rgb(60%, 60%, 00%);
  69. }
  70. .graph6line {
  71. stroke: rgb(60%, 60%, 00%);
  72. }
  73. .axisline {
  74. stroke: black;
  75. stroke-width: 0.42;
  76. stroke-linecap: round;
  77. }
  78. .titletext {
  79. font-size: 8.712px;
  80. }
  81. .axistext-x {
  82. font-size: 6.48px;
  83. }
  84. .axistext-x-number {
  85. font-size: 6.48px;
  86. }
  87. .axistext-y {
  88. font-size: 7.2px;
  89. }
  90. .axismark-main {
  91. stroke: black;
  92. stroke-width: 0.29;
  93. }
  94. .axismark-second {
  95. stroke: black;
  96. stroke-width: 0.29;
  97. }
  98. .gridline {
  99. stroke: black;
  100. stroke-width: 0.21;
  101. }
  102. ]]></style>
  103. <defs>
  104. <!--== axis dashes definitions ==-->
  105. <!-- x-axis mark, modify "height" -->
  106. <pattern id="x-axismark-main" x="0" width="10" height="2.4" patternUnits="userSpaceOnUse">
  107. <line x1="0" y1="-1" x2="0" y2="2.4" class="axismark-main"/>
  108. </pattern>
  109. <!-- x-axis gridline vertical, modify "width" -->
  110. <pattern id="x-gridline" height="60" width="10" patternUnits="userSpaceOnUse">
  111. <line x1="0" x2="0" y1="0" y2="60" class="gridline"/>
  112. </pattern>
  113. <!-- y-axis gridline horizontal, modify "height" -->
  114. <pattern id="y-gridline" width="240" height="12.5" patternUnits="userSpaceOnUse">
  115. <line x1="0" x2="240" y1="0" y2="0" class="gridline"/>
  116. </pattern>
  117. <!-- y-axis mark, modify "width" -->
  118. <pattern id="y-axismark-main" width="2.4" height="12.5" patternUnits="userSpaceOnUse">
  119. <line x1="-1" y1="0" x2="2.4" y2="0" class="axismark-main"/>
  120. </pattern>
  121. <!-- y-axis2 mark, modify "width" -->
  122. <pattern id="y-axis2mark-main" width="1.2" height="17.657325" patternUnits="userSpaceOnUse">
  123. <line x1="-1" y1="0" x2="11" y2="0" class="axismark-main"/>
  124. </pattern>
  125. </defs>
  126. <g transform="scale(1, -1)">
  127. <rect id="x-gridline-area" x="0.3" y="0" width="122.4" height="75" fill="url(#x-gridline)"/>
  128. <rect id="y-gridline-area" x="0" y="0.3" width="120" height="76.5" fill="url(#y-gridline)"/>
  129. <!-- x axis, modify "x2" and "width" -->
  130. <rect id="x-axismark" x="-0.6" y="-2.1" width="122.4" height="2.1" fill="url(#x-axismark-main)"/>
  131. <line id="x-axis" x1="0" y1="0" x2="120" y2="0" class="axisline"/>
  132. <!-- y axis, modify "height" -->
  133. <rect id="y-axismark" x="-2.1" y="-0.6 " width="2.1" height="76" fill="url(#y-axismark-main)"/>
  134. <line id="y-axis" x1="0" y1="0" x2="0" y2="75" class="axisline"/>
  135. <rect id="y-axis2mark" x="120" y="-0.6 " width="2.1" height="76" fill="url(#y-axis2mark-main)"/>
  136. <line id="y-axis2" x1="120" y1="0" x2="120" y2="75" class="axisline"/>
  137. </g>
  138. <!-- x axis text, modify each value -->
  139. <g id="axistext-x" class="axistext-x-number" transform="translate(0, 8.6)" text-anchor="middle">
  140. <text x= "0">1900</text>
  141. <text x= "20">1920</text>
  142. <text x= "40">1940</text>
  143. <text x= "60">1960</text>
  144. <text x= "80">1980</text>
  145. <text x="100">2000</text>
  146. <text x="120">2020</text>
  147. <text id="title-x" class="axistext-x" x="60" y="8.4" >Year</text>
  148. </g>
  149. <!-- y axis text, modify each value -->
  150. <g id="axistext-y" class="axistext-y" text-anchor="end" transform="translate(-3.6, 1.8)">
  151. <text y= "-0">0</text>
  152. <text y="-12.5">5</text>
  153. <text y= "-25">10</text>
  154. <text y="-37.5">15</text>
  155. <text y= "-50">20</text>
  156. <text y="-62.5">25</text>
  157. <text y= "-75">30</text>
  158. <text id="title-y" x="37.5" y="-13.1" transform="rotate(-90)" text-anchor="middle" >Trillion cubic feet per year</text>
  159. </g>
  160. <!-- y axis on right side, modify each value -->
  161. <g id="axis2text-y" class="axistext-y" transform="translate(123, 1.8)"> <g text-anchor="start">
  162. <text y= "-0"> 0 </text>
  163. <text y= "-17.66"> 20 </text>
  164. <text y= "-35.31"> 40 </text>
  165. <text y= "-52.97"> 60 </text>
  166. <text y= "-70.63"> 80 </text>
  167. <text id="title-y2" x="37.5" y="17.3" transform="rotate(-90)" text-anchor="middle" >10<tspan dy="-3" font-size="80%">10</tspan><tspan dy="3"> cubic metres per year</tspan></text>
  168. </g></g>
  169. <!-- additional text -->
  170. <text id="title" class="titletext" text-anchor="middle" x="60" y="-80.3">U.S. Natural Gas Production</text>
  171. <!--====== graph data with origin values, you can manually copy or attach the values here ======-->
  172. <!-- modify displacement "translate" -->
  173. <defs>
  174. <g id="graphs">
  175. </g>
  176. <g id="graph1">
  177. <!-- graph 1 -->
  178. <polyline id="graph1-line" stroke-width="0.34" points="
  179. 1901 0.18
  180. 1902 0.21
  181. 1903 0.24
  182. 1904 0.26
  183. 1905 0.32
  184. 1906 0.39
  185. 1907 0.41
  186. 1908 0.4
  187. 1909 0.48
  188. 1910 0.51
  189. 1911 0.51
  190. 1912 0.56
  191. 1913 0.58
  192. 1914 0.59
  193. 1915 0.63
  194. 1916 0.75
  195. 1917 0.8
  196. 1918 0.72
  197. 1919 0.75
  198. 1920 0.81
  199. 1921 0.67
  200. 1922 0.78
  201. 1923 1.03
  202. 1924 1.16
  203. 1925 1.21
  204. 1926 1.34
  205. 1927 1.47
  206. 1928 1.6
  207. 1929 1.95
  208. 1930 1.98
  209. 1931 1.72
  210. 1932 1.59
  211. 1933 1.6
  212. 1934 1.82
  213. 1935 1.97
  214. 1936 2.23
  215. 1937 2.47
  216. 1938 2.36
  217. 1939 2.54
  218. 1940 2.73
  219. 1941 2.89
  220. 1942 3.15
  221. 1943 3.52
  222. 1944 3.82
  223. 1945 4.04
  224. 1946 4.15
  225. 1947 4.58
  226. 1948 5.15
  227. 1949 5.42
  228. 1950 6.28
  229. 1951 7.46
  230. 1952 8.01
  231. 1953 8.4
  232. 1954 8.74
  233. 1955 9.41
  234. 1956 10.08
  235. 1957 10.68
  236. 1958 11.03
  237. 1959 12.05
  238. 1960 12.77
  239. 1961 13.25
  240. 1962 13.88
  241. 1963 14.75
  242. 1964 15.55
  243. 1965 16.04
  244. 1966 17.21
  245. 1967 18.17
  246. 1968 19.32
  247. 1969 20.7
  248. 1970 21.92
  249. 1971 22.49
  250. 1972 22.53
  251. 1973 22.65
  252. 1974 21.6
  253. 1975 20.11
  254. 1976 19.95
  255. 1977 20.03
  256. 1978 19.97
  257. 1979 20.47
  258. 1980 20.18
  259. 1981 19.96
  260. 1982 18.58
  261. 1983 16.88
  262. 1984 18.3
  263. 1985 17.27
  264. 1986 16.86
  265. 1987 17.43
  266. 1988 17.92
  267. 1989 18.1
  268. 1990 18.59
  269. 1991 18.53
  270. 1992 18.71
  271. 1993 18.98
  272. 1994 19.71
  273. 1995 19.51
  274. 1996 19.81
  275. 1997 19.87
  276. 1998 19.96
  277. 1999 19.8
  278. 2000 20.2
  279. 2001 20.57
  280. 2002 19.88
  281. 2003 19.97
  282. 2004 19.52
  283. 2005 18.93
  284. 2006 19.41
  285. 2007 20.2
  286. 2008 21.11
  287. 2009 21.65
  288. 2010 22.38
  289. 2011 24.04
  290. 2012 25.3
  291. "/>
  292. </g>
  293. </defs>
  294. <g class="graphgeneralstretch" transform="scale(1, -2.5) translate(-1900, -0)">
  295. <!-- graph 1 -->
  296. <use id="graphuse1p2" transform="translate(0.247, 0)" class="graph1lineblank" xlink:href="#graph1"/>
  297. <use id="graphuse1m2" transform="translate(-0.247, 0)" class="graph1lineblank" xlink:href="#graph1"/>
  298. <use id="graphuse1p3" transform="translate(-0.081, 0)" class="graph1lineblank" xlink:href="#graph1"/>
  299. <use id="graphuse1m3" transform="translate(0.081, 0)" class="graph1lineblank" xlink:href="#graph1"/>
  300. <use id="graphuse1-1" transform="translate(0, 0)" class="graph1line" xlink:href="#graph1"/>
  301. </g>
  302. </svg>

↑ Top