Hi Bruce,
 
I cant seem to access lrcwe-data.com. I can get to lrcwe.com and browsed
around, but couldnt find the stuff you sent in your email.
 
Dan

  _____  

From: brucerindahl [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 20 December 2006 3:08 AM
To: [email protected]
Subject: [svg-developers] Re: XML Data --> XSLT --> SVG --> Line Graph



--- In [email protected]
<mailto:svg-developers%40yahoogroups.com> , "Dan Hardison"
<[EMAIL PROTECTED]>
wrote:
>
> Hi,
> 
> I want to take an XML data island (of recordings from my wine cellar)
> and transform it into an SVG line graph using XSLT.
> 
> Has anyone come across a good code sample I can plagiarise? I thought
I
> saw Kurt Cagle saying he had posted an example on his website, but I
> cant find it.
> 
> I'm not trying to be lazy and get the good people on this group to do
my
> work for me (well maybe just a little :-), but I need a good starting
> point. All I have so far is the XML data, roughly structured as below:
> 
> <Measurements>
> <Measurement>
> <MeasurementDateTime>2006-04-24
> 09:45:54.000</MeasurementDateTime>
> <AirTemperature>17.0</AirTemperature>
> <WineTemperature>15.9</WineTemperature>
> <Humidity>70.4</Humidity>
> </Measurement>
> <Measurement>
> <MeasurementDateTime>2006-04-24
> 09:46:24.000</MeasurementDateTime>
> <AirTemperature>17.1</AirTemperature>
> <WineTemperature>15.9</WineTemperature>
> <Humidity>71.0</Humidity>
> </Measurement>
> ...
> ...
> etc
> ...
> </Measurements>
> 
> 
> Dan
> 
> 
> 
> [Non-text portions of this message have been removed]
>
I take streamflow data in XML format and create a linegraph exactly as
you describe by manipulating a SVG DOM. A full example can be found at:
http://www.lrcwe-data.com/hydrograph/hydrograph.php?title=South%20Platte
%20through%20Denver&max=1799&min=0&gages=PLADENCO;DWR;DISCHRG
<http://www.lrcwe-data.com/hydrograph/hydrograph.php?title=South%20Platt
e%20through%20Denver&max=1799&min=0&gages=PLADENCO;DWR;DISCHRG> 

If you do a view source you will se the result of the transformation.

The SVG includes mouseover effects to give the datapoints in text.

The XML streamflow file can be found at:
http://www.lrcwe-data.com/SatMon/PLADENCO.xml
<http://www.lrcwe-data.com/SatMon/PLADENCO.xml> 

The XSLT file is at:
http://www.lrcwe-data.com/hydrograph/hydrograph.xsl
<http://www.lrcwe-data.com/hydrograph/hydrograph.xsl> 

The "blank" svg file that is manipulated is at:
http://www.lrcwe-data.com/hydrograph/hydrograph.svg
<http://www.lrcwe-data.com/hydrograph/hydrograph.svg> 

The XSLT transformation is done in PHP5 where the parameters are sent
to the transformation engine.

Feel free to take whatever works for you.

Bruce Rindahl



 


[Non-text portions of this message have been removed]



-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to