GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Main page
  • Welcome
  • Community portal
  • Village pump
  • Help center
  • Upload file
  • Recent changes
  • Latest files
  • Random file
  • Contact us
  • Special pages
  • Add links
  • Search
  • English

This view

  • Original page
  • New address

GeezerVison is showing commons.wikimedia.org — Template:SVG Chart/doc/programming - Wikimedia Commons

< Template:SVG Chart | doc

Modify the source code

If you mean that something should be changed, the easiest way is:

  1. Check the produced svg file regarding the wanted feature.
  2. Note respectively copy the id attribute name of that relevant text area.
  3. Search that id name in the template source.
  4. Modify this founded template source accordingly.

File structure

The core function is SVG_Chart/Core. The supplementary functions are listed here.

Workarounds for librsvg

Workarounds are required because the librsvg (current version 2.36.1) renderer of Mediawiki does not have all functions implemented or produce incorrect images.

Non-scaling-stroke

The line thickness will be changed in only one direction by use of the stretching values GraphStretchWidth and GraphStretchHeight. This could be prevented by use of the instruction vector-effect="non-scaling-stroke". But this does not work in librsvg. Depending on the required line thickness therefore up to three or five lines are shown overlapped. The realisation you can see in GraphUseLines.

Misplaced text

Text with a small font size is moved to a wrong position. One task which helps, is to beginning with a rect command. The second strategy is to move the text with a special tspan command, see besides the TextDY TextDY function.

Specifics for Internet Explorer

Copied text which have coded with word wrap <br /> don't have the word wrap in the .svg file. I don't know a solution.

Retrieved from "https://commons.wikimedia.org/w/index.php?title=Template:SVG_Chart/doc/programming&oldid=392136343"
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.