I am just starting to look into SVG as a possible means of generating graphs on the fly from a database. I have been trying to manually generate a graph just to get used to the code. However, I can't get the text (highlighted in italics below) to display. Any ideas why??
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"<svg width="500" height="300" xmlns="
<g transform="translate(30, 250) rotate(-90)">
<g id="axes">
<text x="300" y="10">
<tspan fill="blue">300</tspan>
</text>
<line x1="0" y1="0" x2="0" y2="300" stroke="blue"/>
<line x1="0" y1="0" x2="300" y2="0" stroke="blue"/>
</g>
<rect x="0" y="10" height="20" width="100" stroke="black" stroke-width="2" fill="black" />
<rect x="0" y="40" height="20" width="200" stroke="blue" stroke-width="2" fill="blue" />
<rect x="0" y="70" height="20" width="150" stroke="green" stroke-width="2" fill="green" />
<rect x="0" y="100" height="20" width="170" stroke="black" stroke-width="2" fill="none" />
<rect x="0" y="130" height="20" width="110" stroke="black" stroke-width="2" fill="none" />
<g id="chartLine">
<circle cx="80" cy="20" r="3" fill="red" stroke="red" />
<line x1="80" y1="20" x2="150" y2="50" stroke="red" stroke-width="2" />
<circle cx="150" cy="50" r="3" fill="red" stroke="red" />
<line x1="150" y1="50" x2="120" y2="80" stroke="red" stroke-width="2" />
<circle cx="120" cy="80" r="3" fill="red" stroke="red" />
<line x1="120" y1="80" x2="140" y2="110" stroke="red" stroke-width="2" />
<circle cx="140" cy="110" r="3" fill="red" stroke="red" />
<line x1="140" y1="110" x2="200" y2="140" stroke="red" stroke-width="2" />
<circle cx="200" cy="140" r="3" fill="red" stroke="red" />
</g>
</g>
</svg>
Mighty
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"<svg width="500" height="300" xmlns="
<g transform="translate(30, 250) rotate(-90)">
<g id="axes">
<text x="300" y="10">
<tspan fill="blue">300</tspan>
</text>
<line x1="0" y1="0" x2="0" y2="300" stroke="blue"/>
<line x1="0" y1="0" x2="300" y2="0" stroke="blue"/>
</g>
<rect x="0" y="10" height="20" width="100" stroke="black" stroke-width="2" fill="black" />
<rect x="0" y="40" height="20" width="200" stroke="blue" stroke-width="2" fill="blue" />
<rect x="0" y="70" height="20" width="150" stroke="green" stroke-width="2" fill="green" />
<rect x="0" y="100" height="20" width="170" stroke="black" stroke-width="2" fill="none" />
<rect x="0" y="130" height="20" width="110" stroke="black" stroke-width="2" fill="none" />
<g id="chartLine">
<circle cx="80" cy="20" r="3" fill="red" stroke="red" />
<line x1="80" y1="20" x2="150" y2="50" stroke="red" stroke-width="2" />
<circle cx="150" cy="50" r="3" fill="red" stroke="red" />
<line x1="150" y1="50" x2="120" y2="80" stroke="red" stroke-width="2" />
<circle cx="120" cy="80" r="3" fill="red" stroke="red" />
<line x1="120" y1="80" x2="140" y2="110" stroke="red" stroke-width="2" />
<circle cx="140" cy="110" r="3" fill="red" stroke="red" />
<line x1="140" y1="110" x2="200" y2="140" stroke="red" stroke-width="2" />
<circle cx="200" cy="140" r="3" fill="red" stroke="red" />
</g>
</g>
</svg>
Mighty