File talk:Guyana population.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="-25.20825,-95.8,257.40825,118.1"      
  width="750" height="340"
  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="-25.208" y="-95.8" width="257.41" height="118.1" stroke-width="0.17" 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; All values are scaled by 1000. This is necessary to keep the lines from turning into ribbons.
</desc>

<style id="styles" type="text/css"> <![CDATA[
  .graphgeneral {         /*-- general look of graphs and markers, e.g. in legend --*/
    stroke-width:    1.16;
    fill:            none;
    stroke-linejoin: round;
    stroke-linecap:  round;
  }
  .graphgeneralstretch {  /*-- general look of graphs and markers on a stretched chart --*/ 
    stroke-width:    1.12;
    fill:            none;
    stroke-linejoin: round;
    stroke-linecap:  round;
  } 
.graph1lineblank { /*-- look of graph 1 --*/ stroke:  #FF00FF; } .graph1line { stroke:  #FF00FF;
marker-start:url(#graph1markerstretch); marker-mid:url(#graph1markerstretch); marker-end:url(#graph1markerstretch); }
.graph1marker { /*-- look of marker 1 --*/ stroke:  #FF00FF; fill:  #FF00FF; }
.graph2lineblank { /*-- look of graph 2 --*/ stroke: rgb(75%, 10%, 10%); } .graph2line { stroke: rgb(75%, 10%, 10%); }
.graph3lineblank { /*-- look of graph 3 --*/ stroke: rgb(00%, 60%, 00%); } .graph3line { stroke: rgb(00%, 60%, 00%); }
.graph4lineblank { /*-- look of graph 4 --*/ stroke: rgb(00%, 60%, 60%); } .graph4line { stroke: rgb(00%, 60%, 60%); }
.graph5lineblank { /*-- look of graph 5 --*/ stroke: rgb(60%, 00%, 60%); } .graph5line { stroke: rgb(60%, 00%, 60%); }
.graph6lineblank { /*-- look of graph 6 --*/ stroke: rgb(60%, 60%, 00%); } .graph6line { stroke: rgb(60%, 60%, 00%); }
.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.58; stroke-linecap: round; } .titletext { font-size: 8.183px; } .axistext-x { font-size: 7.439px; } .axistext-x-number { font-size: 7.439px; } .axistext-y { font-size: 7.439px; } .axismark-main { stroke: black; stroke-width: 0.4; } .axismark-second { stroke: black; stroke-width: 0.4; }   .legendtext { font-size: 7.439px; text-anchor: start; }
.graphmarker { stroke-width: 0.58; fill: white; stroke-linejoin: round; } ]]></style> <defs> <!--== axis dashes definitions ==--> <!-- x-axis mark, modify "height" --> <pattern id="x-axismark-main" x="0" width="10" height="3.2" patternUnits="userSpaceOnUse"> <line x1="0" y1="-1" x2="0" y2="3.2" class="axismark-main"/> </pattern> <!-- y-axis mark, modify "width" --> <pattern id="y-axismark-main" width="3.2" height="10" patternUnits="userSpaceOnUse"> <line x1="-1" y1="0" x2="3.2" y2="0" class="axismark-main"/> </pattern> <!-- y-axis2 mark, modify "width" --> <pattern id="y-axis2mark-main" width="1.6" height="10" patternUnits="userSpaceOnUse"> <line x1="-1" y1="0" x2="11" y2="0" class="axismark-main"/> </pattern>

<!--== graph marker ==--> <g class="graphmarker">
<g id="graph1markershape" transform="translate(3.47,3.47)"><rect x="-1.736" y="-1.736" width="3.471" height="3.471" fill="x"/></g> <!-- regular square --> <marker id="graph1marker" class="graph1marker" refX="3.47" refY="3.47" viewBox="0 0 6.94 6.94" markerUnits="userSpaceOnUse" markerWidth="6.94" markerHeight="6.94"> <use xlink:href="#graph1markershape"/> </marker> <marker id="graph1markerstretch" class="graph1marker" refX="3.47" refY="3.356" viewBox="0 0 6.94 6.94" markerUnits="userSpaceOnUse" markerWidth="6.94" markerHeight="6.94"> <use transform="scale(1, 0.967)" xlink:href="#graph1markershape"/> </marker> </g> </defs> <g transform="scale(1, -1)"> <!-- x axis, modify "x2" and "width" --> <rect id="x-axismark" x="-0.8" y="-2.8" width="168.6" height="2.8" fill="url(#x-axismark-main)"/> <line id="x-axis" x1="0" y1="0" x2="165" y2="0" class="axisline"/> <!-- y axis, modify "height" --> <rect id="y-axismark" x="-2.8" y="-0.8" width="2.8" height="91" fill="url(#y-axismark-main)"/> <line id="y-axis" x1="0" y1="0" x2="0" y2="90" class="axisline"/> </g> <!-- x axis text, modify each value --> <g id="axistext-x" class="axistext-x-number" transform="translate(0, 9.7)" text-anchor="middle"> <text id="title-x" class="axistext-x" x="82.65" y="9.7" ></text> </g> <!-- y axis text, modify each value --> <g id="axistext-y" class="axistext-y" text-anchor="end" transform="translate(-5, 2.5)">   <text y=  "-0">50</text> <text id="title-y" x="45" y="-13.5" transform="rotate(-90)" text-anchor="middle" ></text> </g>
<!-- legend --> <g id="legend" class="legendtext" transform="translate(173.6, -81)">
<g id="legend-background" class="axismark-main"> <rect x="0" y="0" fill="white" width="53.7" height="20.1"/> </g>
  <g class="graphgeneral"><g class="graph1line"> <polyline id="legend-line1" points="3.31 5.73 11.57 5.73" marker-start="none" marker-end="none"/>
<path id="legend-marker1" transform="scale(1 -1)" stroke-width="0.00001" d="M 7.44 -5.73 h 0" marker-start="url(#graph1marker)" marker-end="none"/> </g></g> <text id="legend-text1" x="14.9" y="7.94">1st W </text>
  <g class="graphgeneral"><g class="graph2line"> <polyline id="legend-line2" points="3.31 13.91 11.57 13.91" marker-start="none" marker-end="none"/> </g></g> <text id="legend-text2" x="14.9" y="16.12">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="1.12" points=" 15 40 30 10 45 35 60 10 75 40 "/> </g> </defs> <g class="graphgeneralstretch" transform="scale(2.9, -3) translate(-1960, -50)">
  <!-- graph 2 --> <use id="graphuse2-1" transform="translate(0, 0)" class="graph2line" xlink:href="#graph2"/>
  <!-- graph 1 --> <use id="graphuse1-1" transform="translate(0, 0)" class="graph1line" xlink:href="#graph1"/> </g> </svg>