File talk:2014 West Africa Ebola Epidemic - New Cases per Week.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="-33.78672,-117.4,333.65372,147.8"      
  width="750" height="330"
  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="-33.787" y="-117.4" width="333.65" height="147.8" stroke-width="0.21" 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 10. 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.48;
    fill:            none;
    stroke-linejoin: round;
    stroke-linecap:  round;
  }
  .graphgeneralstretch {  /*-- general look of graphs and markers on a stretched chart --*/ 
    stroke-width:    0.55;
    fill:            none;
    stroke-linejoin: round;
    stroke-linecap:  round;
  } 
.graph1lineblank { /*-- look of graph 1 --*/ stroke:  #000000; } .graph1line { stroke:  #000000;
marker-start:url(#graph1markerstretch); marker-mid:url(#graph1markerstretch); marker-end:url(#graph1markerstretch); }
.graph1marker { /*-- look of marker 1 --*/ stroke:  #000000; fill:  #000000; }
.graph2lineblank { /*-- look of graph 2 --*/ stroke:  #FF0000; } .graph2line { stroke:  #FF0000;
marker-start:url(#graph2markerstretch); marker-mid:url(#graph2markerstretch); marker-end:url(#graph2markerstretch); }
.graph2marker { /*-- look of marker 2 --*/ stroke:  #FF0000; fill:  #FF0000; }
.graph3lineblank { /*-- look of graph 3 --*/ stroke:  #92D050; } .graph3line { stroke:  #92D050;
marker-start:url(#graph3markerstretch); marker-mid:url(#graph3markerstretch); marker-end:url(#graph3markerstretch); }
.graph3marker { /*-- look of marker 3 --*/ stroke:  #92D050; fill:  #92D050; }
.graph4lineblank { /*-- look of graph 4 --*/ stroke:  #FFC000; } .graph4line { stroke:  #FFC000;
marker-start:url(#graph4markerstretch); marker-mid:url(#graph4markerstretch); marker-end:url(#graph4markerstretch); }
.graph4marker { /*-- look of marker 4 --*/ stroke:  #FFC000; fill:  #FFC000; }
.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.74; stroke-linecap: round; } .titletext { font-size: 11.15px; } .axistext-x { font-size: 10.14px; } .axistext-x-number { font-size: 10.14px; } .axistext-y { font-size: 10.14px; } .axismark-main { stroke: black; stroke-width: 0.52; } .axismark-second { stroke: black; stroke-width: 0.52; }   .legendtext { font-size: 10.14px; text-anchor: start; }
.graphmarker { stroke-width: 0.74; 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="4.4" patternUnits="userSpaceOnUse"> <line x1="0" y1="-1" x2="0" y2="4.4" class="axismark-main"/> </pattern> <!-- y-axis mark, modify "width" --> <pattern id="y-axismark-main" width="4.4" height="10" patternUnits="userSpaceOnUse"> <line x1="-1" y1="0" x2="4.4" y2="0" class="axismark-main"/> </pattern> <!-- y-axis2 mark, modify "width" --> <pattern id="y-axis2mark-main" width="2.2" 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(4.43,4.43)"><rect x="-2.217" y="-2.217" width="4.435" height="4.435" fill="x"/></g> <!-- regular square --> <marker id="graph1marker" class="graph1marker" refX="4.43" refY="4.43" viewBox="0 0 8.87 8.87" markerUnits="userSpaceOnUse" markerWidth="8.87" markerHeight="8.87"> <use xlink:href="#graph1markershape"/> </marker> <marker id="graph1markerstretch" class="graph1marker" refX="1.642" refY="4.43" viewBox="0 0 8.87 8.87" markerUnits="userSpaceOnUse" markerWidth="8.87" markerHeight="8.87"> <use transform="scale(0.37, 1)" xlink:href="#graph1markershape"/> </marker>
<g id="graph2markershape" transform="translate(4.43,4.43)"><circle cx="0" cy="0" r="2.66" fill="x"/></g> <!-- circle --> <marker id="graph2marker" class="graph2marker" refX="4.43" refY="4.43" viewBox="0 0 8.87 8.87" markerUnits="userSpaceOnUse" markerWidth="8.87" markerHeight="8.87"> <use xlink:href="#graph2markershape"/> </marker> <marker id="graph2markerstretch" class="graph2marker" refX="1.642" refY="4.43" viewBox="0 0 8.87 8.87" markerUnits="userSpaceOnUse" markerWidth="8.87" markerHeight="8.87"> <use transform="scale(0.37, 1)" xlink:href="#graph2markershape"/> </marker>
<g id="graph3markershape" transform="translate(4.43,4.43)"><polygon points="-2.66,-2.66 2.66,-2.66 0,2.66" fill="x"/></g> <!-- triangle --> <marker id="graph3marker" class="graph3marker" refX="4.43" refY="4.43" viewBox="0 0 8.87 8.87" markerUnits="userSpaceOnUse" markerWidth="8.87" markerHeight="8.87"> <use xlink:href="#graph3markershape"/> </marker> <marker id="graph3markerstretch" class="graph3marker" refX="1.642" refY="4.43" viewBox="0 0 8.87 8.87" markerUnits="userSpaceOnUse" markerWidth="8.87" markerHeight="8.87"> <use transform="scale(0.37, 1)" xlink:href="#graph3markershape"/> </marker>
<g id="graph4markershape" transform="translate(4.43,4.43)"><rect transform="rotate(45)" x="-2.217" y="-2.217" width="4.435" height="4.435" fill="x"/></g> <!-- tilted square --> <marker id="graph4marker" class="graph4marker" refX="4.43" refY="4.43" viewBox="0 0 8.87 8.87" markerUnits="userSpaceOnUse" markerWidth="8.87" markerHeight="8.87"> <use xlink:href="#graph4markershape"/> </marker> <marker id="graph4markerstretch" class="graph4marker" refX="1.642" refY="4.43" viewBox="0 0 8.87 8.87" markerUnits="userSpaceOnUse" markerWidth="8.87" markerHeight="8.87"> <use transform="scale(0.37, 1)" xlink:href="#graph4markershape"/> </marker> </g> </defs> <g transform="scale(1, -1)"> <!-- x axis, modify "x2" and "width" --> <rect id="x-axismark" x="-1.1" y="-3.9" width="215.4" height="3.85" fill="url(#x-axismark-main)"/> <line id="x-axis" x1="0" y1="0" x2="211" y2="0" class="axisline"/> <!-- y axis, modify "height" --> <rect id="y-axismark" x="-3.85" y="-1.1" width="3.85" height="111" fill="url(#y-axismark-main)"/> <line id="y-axis" x1="0" y1="0" x2="0" y2="110" class="axisline"/> </g> <!-- x axis text, modify each value --> <g id="axistext-x" class="axistext-x-number" transform="translate(0, 13.2)" text-anchor="middle">   <text x= "0">0</text>   <text x="11.73">4</text>   <text x="23.46">9</text>   <text x="35.19">13</text>   <text x="46.93">17</text>   <text x="58.66">22</text>   <text x="70.39">26</text>   <text x="82.12">30</text>   <text x="93.85">35</text>   <text x="105.58">39</text>   <text x="117.32">43</text>   <text x="129.05">48</text>   <text x="140.78">52</text>   <text x="152.51">56</text>   <text x="164.24">61</text>   <text x="175.97">65</text>   <text x="187.7">70</text>   <text x="199.44">74</text>   <text x="211.17">78</text>   <text x="222.9">83</text> <text id="title-x" class="axistext-x" x="105.5835" y="13.2" >2014</text> </g> <!-- y axis text, modify each value --> <g id="axistext-y" class="axistext-y" text-anchor="end" transform="translate(-6.3, 3.2)">   <text y=  "-0">0</text>   <text y= "-20">20</text>   <text y= "-40">40</text> <text id="title-y" x="55" y="-22.1" transform="rotate(-90)" text-anchor="middle" >New Cases per Week</text> </g>
<!-- legend --> <g id="legend" class="legendtext" transform="translate(221.7, -99)">
<g id="legend-background" class="axismark-main"> <rect x="0" y="0" fill="white" width="71.8" height="27.4"/> </g>
  <g class="graphgeneral"><g class="graph1line"> <polyline id="legend-line1" points="4.22 7.81 14.78 7.81" marker-start="none" marker-end="none"/>
<path id="legend-marker1" transform="scale(1 -1)" stroke-width="0.00001" d="M 9.5 -7.81 h 0" marker-start="url(#graph1marker)" marker-end="none"/> </g></g> <text id="legend-text1" x="19" y="10.82">1st W </text>
  <g class="graphgeneral"><g class="graph2line"> <polyline id="legend-line2" points="4.22 18.96 14.78 18.96" marker-start="none" marker-end="none"/>
<path id="legend-marker2" transform="scale(1 -1)" stroke-width="0.00001" d="M 9.5 -18.96 h 0" marker-start="url(#graph2marker)" marker-end="none"/> </g></g> <text id="legend-text2" x="19" y="21.97">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.55" points=" 15 40 30 10 45 35 60 10 75 40 "/> </g> </defs> <g class="graphgeneralstretch" transform="scale(2.7, -1) translate(-0, -0)">
  <!-- graph 2 --> <use id="graphuse2p2" transform="translate(0, 0.457)" class="graph2lineblank" xlink:href="#graph2"/> <use id="graphuse2m2" transform="translate(0, -0.457)" class="graph2lineblank" xlink:href="#graph2"/> <use id="graphuse2p3" transform="translate(0, -0.079)" class="graph2lineblank" xlink:href="#graph2"/> <use id="graphuse2m3" transform="translate(0, 0.079)" 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, 0.457)" class="graph1lineblank" xlink:href="#graph1"/> <use id="graphuse1m2" transform="translate(0, -0.457)" class="graph1lineblank" xlink:href="#graph1"/> <use id="graphuse1p3" transform="translate(0, -0.079)" class="graph1lineblank" xlink:href="#graph1"/> <use id="graphuse1m3" transform="translate(0, 0.079)" class="graph1lineblank" xlink:href="#graph1"/> <use id="graphuse1-1" transform="translate(0, 0)" class="graph1line" xlink:href="#graph1"/> </g> </svg>