File talk:Population Statistics Regensburg.svg

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

Source

[edit]

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 here or here.

<?xml version="1.0" encoding="UTF-8" ?>
<!-- Generator: wikimedia.svg.chart, 2013-11-01 -->
<!-- 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="-48.1, -158.4, 295.8, 176.3"
  width="750" height="450"
  font-family="Helvetica, Arial"
>

<desc>
  This svg graphic is to edit with an text editor.
  Please do not overwrite this file by saving with an image editor.
  ----------------
  Population Statistics of Regensburg
</desc>

<!-- also a workaround for librsvg: a <rect> must be placed somewhere before text for a good display of text -->
<rect id="imagebackground" x="-48.1" y="-158.4" width="295.8" height="176.3" stroke-width="0.24" stroke="none" fill="white"/>

<style id="styles" type="text/css"> <![CDATA[
  .graphgeneral {         /*-- general look of graphs and markers, e.g. in legend --*/
    stroke-width:    1.68;
    fill:            none;
    stroke-linejoin: round;
    stroke-linecap:  round;
  }
  .graphgeneralstretch {  /*-- general look of graphs and markers on a stretched chart --*/
    stroke-width:    1.3;
    fill:            none;
    stroke-linejoin: round;
    stroke-linecap:  round;
  }
  .graph1lineblank { /*-- look of graph 1 --*/
    stroke:          #333333;
  }
  .graph1line {
    stroke:          #333333;
  }
  .axisline {
    stroke:          black;
    stroke-width:    0.84;
    stroke-linecap:  round;
  }
  .axismark-main {
    stroke:          black;
    stroke-width:    0.59;
  }
  .axismark-second {
   stroke:           black;
    stroke-width:    0.59;
  }
  .gridline {
    stroke:          black;
    stroke-width:    0.42;
  }
  .titletext {
    font-size:       17.46px;
  }
  .axistext-x {
    font-size:       9.96px;
  }
  .axistext-x-number {
    font-size:       9.96px;
  }
  .axistext-y {
    font-size:       9.96px;
  }
]]></style>

<defs>
  <!--== axis dashes definitions ==-->

  <!-- x-axis gridline vertical, modify "width" -->
  <pattern id="x-gridline" height="300" width="26" patternUnits="userSpaceOnUse">
    <line x1="13" x2="13" y1="0" y2="300" class="gridline"/>
  </pattern>

  <!-- y-axis gridline horizontal, modify "height" -->
  <pattern id="y-gridline" width="370" height="20" patternUnits="userSpaceOnUse">
    <line x1="0" x2="370" y1="0" y2="0" class="gridline"/>
  </pattern>

  <!-- x-axis mark, modify "height" -->
  <pattern id="x-axismark-main" x="13" width="26" height="5.28" patternUnits="userSpaceOnUse">
    <line x1="0" y1="-1" x2="0" y2="5.28" class="axismark-main"/>
  </pattern>

  <!-- x-axis 2nd mark, modify "width" and "x1" -->
  <pattern id="x-axismark-second" x="13" width="13" height="5.28" patternUnits="userSpaceOnUse">
    <line x1="0" y1="-1" x2="0" y2="5.28" class="axismark-second"/>
  </pattern>

  <!-- y-axis mark, modify "width" -->
  <pattern id="y-axismark-main" y="0" width="5.28" height="20" patternUnits="userSpaceOnUse">
    <line x1="-1" y1="0" x2="5.28" y2="0" class="axismark-main"/>
  </pattern>

  <!-- y-axis2 mark, modify "width" -->
  <pattern id="y-axis2mark-main" y="0" width="5.28" height="10" patternUnits="userSpaceOnUse">
    <line x1="-1" y1="0" x2="5.28" y2="0" class="axismark-main"/>
  </pattern>
</defs>


<g transform="scale(1, -1)">
  <!-- grids -->
  <rect id="x-gridline-area" x="0.3" y="0" width="242.9" height="150" fill="url(#x-gridline)"/>
  <rect id="y-gridline-area" x="0" y="0.3" width="240.5" height="151.5" fill="url(#y-gridline)"/>
</g>

<!-- x axis text, modify each value -->
<g id="axistext-x" class="axistext-x-number" transform="translate(0, 5.97)" text-anchor="middle">
  <text x=   "13">1840</text>
  <text x=   "39">1860</text>
  <text x=   "65">1880</text>
  <text x=   "91">1900</text>
  <text x=  "117">1920</text>
  <text x=  "143">1940</text>
  <text x=  "169">1960</text>
  <text x=  "195">1980</text>
  <text x=  "221">2000</text>
</g>

<!-- y axis text, modify each value -->
<g id="axistext-y" class="axistext-y" text-anchor="end" transform="translate(-7.2, 2.5)">
  <text y=  "-0">0 000</text>
  <text y= "-20">20 000</text>
  <text y= "-40">40 000</text>
  <text y= "-60">60 000</text>
  <text y= "-80">80 000</text>
  <text y="-100">100 000</text>
  <text y="-120">120 000</text>
  <text y="-140">140 000</text>
</g>

<defs>
<!--====== graph data with origin values, you can manually copy or attach the values here ======-->
<!-- modify displacement "translate" -->
  <!-- graph 1 -->
  <polyline id="graph1-fill" stroke="none" points="
    1830.417   0
    1830.417  16.287
    1833.065  19.985
    1840.917  19.31
    1843.922  20.678
    1846.922  20.988
    1849.922  21.251
    1852.922  22.286
    1855.922  22.785
    1858.922  23.362
    1861.922  24.279
    1864.922  25.981
    1867.922  26.646
    1871.917  29.182
    1875.917  31.504
    1880.917  34.542
    1885.917  36.093
    1890.917  37.934
    1895.919  41.471
    1900.917  45.429
    1905.917  48.801
    1910.917  52.624
    1916.917  45.228
    1917.927  45.152
    1919.769  52.51
    1920.997  53.4
    1925.457  76.948
    1930.997  81.9
    1933.457  81.106
    1935.997  82.218
    1939.376  95.631
    1940.997 102.2
    1945.997 104.981
    1946.825 108.604
    1947.997 110.119
    1950.699 117.291
    1951.997 121.171
    1952.997 122.786
    1953.997 123.367
    1956.731 120.324
    1961.43  125.047
    1961.997 125.031
    1962.997 125.142
    1963.997 125.18
    1964.997 125.138
    1965.997 125.349
    1966.997 125.691
    1967.997 125.3
    1968.997 126.499
    1969.997 128.816
    1970.403 129.589
    1970.997 131.153
    1971.997 131.742
    1972.997 133.355
    1973.997 133.8
    1974.997 133.183
    1975.997 131.886
    1976.997 130.346
    1977.997 133.533
    1978.997 133.302
    1979.997 132.399
    1980.997 132.604
    1981.997 132.882
    1982.997 132.617
    1983.997 132.01
    1984.997 126.681
    1985.997 124.48
    1986.997 123.821
    1987.398 118.639
    1987.997 118.601
    1988.997 119.078
    1989.997 120.006
    1990.997 121.691
    1991.997 123.002
    1992.997 124.398
    1993.997 125.337
    1994.997 125.608
    1995.997 125.836
    1996.997 125.318
    1997.997 125.085
    1998.997 124.852
    1999.997 125.236
    2000.997 125.676
    2001.997 127.198
    2002.997 128.029
    2003.997 128.604
    2004.997 128.917
    2005.997 129.859
    2006.997 131.342
    2007.997 132.495
    2008.997 133.525
    2009.997 134.218
    2010.997 135.52
    2011.997 136.577
    2012.997 138.296
    2012.997   0
  "/>
</g>
<g id="graph1">
  <!-- graph 1 -->
  <polyline id="graph1-line" stroke-width="1.3" fill="none" points="
    1830.417  16.287
    1833.065  19.985
    1840.917  19.31
    1843.922  20.678
    1846.922  20.988
    1849.922  21.251
    1852.922  22.286
    1855.922  22.785
    1858.922  23.362
    1861.922  24.279
    1864.922  25.981
    1867.922  26.646
    1871.917  29.182
    1875.917  31.504
    1880.917  34.542
    1885.917  36.093
    1890.917  37.934
    1895.919  41.471
    1900.917  45.429
    1905.917  48.801
    1910.917  52.624
    1916.917  45.228
    1917.927  45.152
    1919.769  52.51
    1920.997  53.4
    1925.457  76.948
    1930.997  81.9
    1933.457  81.106
    1935.997  82.218
    1939.376  95.631
    1940.997 102.2
    1945.997 104.981
    1946.825 108.604
    1947.997 110.119
    1950.699 117.291
    1951.997 121.171
    1952.997 122.786
    1953.997 123.367
    1956.731 120.324
    1961.43  125.047
    1961.997 125.031
    1962.997 125.142
    1963.997 125.18
    1964.997 125.138
    1965.997 125.349
    1966.997 125.691
    1967.997 125.3
    1968.997 126.499
    1969.997 128.816
    1970.403 129.589
    1970.997 131.153
    1971.997 131.742
    1972.997 133.355
    1973.997 133.8
    1974.997 133.183
    1975.997 131.886
    1976.997 130.346
    1977.997 133.533
    1978.997 133.302
    1979.997 132.399
    1980.997 132.604
    1981.997 132.882
    1982.997 132.617
    1983.997 132.01
    1984.997 126.681
    1985.997 124.48
    1986.997 123.821
    1987.398 118.639
    1987.997 118.601
    1988.997 119.078
    1989.997 120.006
    1990.997 121.691
    1991.997 123.002
    1992.997 124.398
    1993.997 125.337
    1994.997 125.608
    1995.997 125.836
    1996.997 125.318
    1997.997 125.085
    1998.997 124.852
    1999.997 125.236
    2000.997 125.676
    2001.997 127.198
    2002.997 128.029
    2003.997 128.604
    2004.997 128.917
    2005.997 129.859
    2006.997 131.342
    2007.997 132.495
    2008.997 133.525
    2009.997 134.218
    2010.997 135.52
    2011.997 136.577
    2012.997 138.296
  "/>
</g>
</defs>
 
<g class="graphgeneralstretch" transform="scale(1.3, -1) translate(-1830, -0)">
  <!-- graphfill 1 -->
  <use id="graphfilluse1" transform="translate(0, 0)" fill="#dddddd" xlink:href="#graph1-fill"/>
</g>
 
<g class="graphgeneralstretch" transform="scale(1.3, -1) translate(-1830, -0)">
  <!-- graph 1 -->
  <use id="graphuse1-1-line" transform="translate(0, 0)" class="graph1line" xlink:href="#graph1-line"/>
</g>

<!-- axes with marks -->
<g transform="scale(1, -1)">
  <!-- x axis, modify "x2" and "width" -->
  <rect id="x-axismark2" x="5.6" y="-2.64" width="230.5" height="2.64" fill="url(#x-axismark-second)"/>
  <rect id="x-axismark" x="5.6" y="-4.4" width="235.3" height="4.4" fill="url(#x-axismark-main)"/>
  <line id="x-axis" x1="0" y1="0" x2="241" y2="0" class="axisline"/>

  <!-- y axis, modify "height" -->
  <rect id="y-axismark" x="-4.4" y="-4.4" width="4.4" height="152" fill="url(#y-axismark-main)"/>
  <line id="y-axis" x1="0" y1="0" x2="0" y2="150" class="axisline"/>
</g>

</svg>