Search the web
Sign In
New User? Sign Up
metaphorical · The Metaphorical Web
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
David's bar-chart SVG code   Message List  
Reply | Forward Message #377 of 439 |
follows is the SVG code for a bar-chart I used as illustration at the
computer conference. Discussion and description of it will follow in a
posting in the near future. (I will also attempt to put a jpg of the SVG
output into the files section of this group for those of you who are
not able to run this SVG 'program').

<?xml version="1.0" standalone="yes" ?>
<!-- Copyright 2007 David Dodds All Rights Reserved code copyright
owner -->
<svg xmlns = 'http://www.w3.org/2000/svg'>
<desc xmlns:myfoo="http://example.org/myfoo">
<myfoo:title>This is a financial report</myfoo:title>
<myfoo:descr>The global description uses markup from the
<myfoo:emph>myfoo</myfoo:emph> namespace.</myfoo:descr>
<myfoo:scene><myfoo:what>widget growth</myfoo:what>
<myfoo:contains>thirteen graph-bar</myfoo:contains>

<myfoo:when>1987 through 1999</myfoo:when> </myfoo:scene>
</desc>
<metadata xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/TR/. ..-schema#"
xmlns:omcsvg="http://www.open-meta.com/omcschema/" >
<rdf:Description about="#text1">
<omcsvg:Below resource="#xbaseline"/>
</rdf:Description>
<rdfs:comment
rdf:datatype="http://www.w3.org/2001/XMLSchema#string">XSLT2 Parse can
translate "id text1 is below id xbaseline"</rdfs:comment>
<rdf:Description about="#text1">

<omcsvg:IsNear resource="#xbaseline" />
</rdf:Description>
<rdf:Description about="#text2">
<omcsvg:Below resource="#text1"/>
</rdf:Description>
<rdf:Description about="#text2">
<omcsvg:IsNear resource="#text1" />
</rdf:Description>
<rdf:Description about="#endlineleft">

<omcsvg:AtRight resource="#line1"/>
</rdf:Description>
<rdf:Description about="#endlineleft">
<omcsvg:IsNear resource="#line1" />
</rdf:Description>
<rdf:Description about="#endlineright">
<omcsvg:AtLeft resource="#line13"/>
</rdf:Description>
<rdf:Description about="#endlineright">

<omcsvg:IsNear resource="#line13" />
</rdf:Description>
<rdf:Description about="#line1">
<omcsvg:AtRight resource="#line2" />
</rdf:Description>
<rdf:Description about="#line2">
<omcsvg:AtRight resource="#line3" />
</rdf:Description>
<rdf:Description about="#line3">

<omcsvg:AtRight resource="#line4" />
</rdf:Description>
<rdf:Description about="#line4">
<omcsvg:AtRight resource="#line5" />
</rdf:Description>
<rdf:Description about="#line5">
<omcsvg:AtRight resource="#line6" />
</rdf:Description>
<rdf:Description about="#line6">

<omcsvg:AtRight resource="#line7" />
</rdf:Description>
<rdf:Description about="#line7">
<omcsvg:AtRight resource="#line8" />
</rdf:Description>
<rdf:Description about="#line8">
<omcsvg:AtRight resource="#line9" />
</rdf:Description>
<rdf:Description about="#line9">

<omcsvg:AtRight resource="#line10" />
</rdf:Description>
<rdf:Description about="#line10">
<omcsvg:AtRight resource="#line11" />
</rdf:Description>
<rdfs:comment>SWRL SPARQL Jena RuleML XSLT can be used to examine the
metadata and ontology info to "see" that this
is an SVG bar chart</rdfs:comment>
<rdfs:seeAlso
rdf:resource="http://www.open-meta.com/omcschema#AtRight"/>
<rdfs:isDefinedBy rdf:resource="http://www.open-meta.com/majic" />

<rdf:Description about="#line11">
<omcsvg:AtRight resource="#line12" />
</rdf:Description>

</metadata>

<rect id="xbaseline" x="37" y="190" width="280" height="1"
style="stroke:black; stroke-width:1" />
<text id="text3" x="317" y="194"
style="font-family:Verdana; font-size:12.333; fill:indigo">
18
</text>
<rect id="endlineright" x="333" y="96" width="1" height="104"
style="stroke:black; stroke-width:1" />
<rect id="endlineleft" x="37" y="96" width="1" height="104"
style="stroke:black; stroke-width:1" />
<rect id="line1" x="40" y="160" width="20" height="40"
style="stroke:green; fill:green; stroke-width:0" />
<rect id="line2" x="60" y="140" width="20" height="60"
style="stroke:yellow; fill:yellow; stroke-width:0" />

<rect id="line3" x="80" y="111" width="20" height="89"
style="stroke:blue; fill:red; stroke-width:0" />
<rect id="line4" x="100" y="130" width="20" height="70"
style="stroke:yellow; fill:yellow; stroke-width:0" />
<rect id="line5" x="120" y="173" width="20" height="27"
style="stroke:green; fill:green; stroke-width:0" />
<rect id="line6" x="140" y="191" width="20" height="09"
style="stroke:green; fill:green; stroke-width:0" />
<rect id="line7" x="160" y="140" width="20" height="60"
style="stroke:yellow; fill:yellow; stroke-width:0" />
<rect id="line8" x="180" y="167" width="20" height="33"
style="stroke:green; fill:green; stroke-width:0" />
<rect id="line9" x="200" y="175" width="20" height="25"
style="stroke:green; fill:green; stroke-width:0" />
<rect id="line10" x="220" y="129" width="20" height="71"
style="stroke:yellow; fill:yellow; stroke-width:0" />
<rect id="line11" x="240" y="150" width="20" height="50"
style="stroke:green; fill:green; stroke-width:0" />
<rect id="line12" x="260" y="139" width="20" height="61"
style="stroke:yellow; fill:yellow; stroke-width:0" />
<rect id="line13" x="280" y="125" width="20" height="75"
style="stroke:yellow; fill:yellow; stroke-width:0" />

<text id="text1" x="37" y="210"
style="font-family:Verdana; font-size:12.333; fill:black">
87888990919293949596979899
</text>
<text id="text2" x="37" y="230"
style="font-family:Verdana; font-size:12.333; fill:blue">
Mean High Ratings August 1999

</text>
</svg>







Fri Nov 30, 2007 1:15 pm

david_dodds_...
Offline Offline
Send Email Send Email

Forward
Message #377 of 439 |
Expand Messages Author Sort by Date

follows is the SVG code for a bar-chart I used as illustration at the computer conference. Discussion and description of it will follow in a posting in the...
david_dodds_2001
david_dodds_...
Offline Send Email
Nov 30, 2007
1:16 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help