[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: SVG graphs
>> Has anyone written an XSL transform to take some data/report schema >> and create some sort of graph in SVG? More importantly, would you >> like to share it with me? I'm working on it now and it doesn't seem >> to be too hard, just a lot of mathmatical calculations, which I'd >> rather R&D (rob and duplicate) than reinvent. There's some quite cool stuff written by Doug Tidwell doing this kind of thing at: http://www-106.ibm.com/developerworks/education/transforming-xml/xmltosvg/index.html I've just put up some documentation for an SVG utility stylesheet at http://www.jenitennison.com/xslt/utilities/svg-utils.html. The point of the stylesheet isn't about charts, but rather about how to get SVG images that you create dynamically to load into an HTML page that you also create dynamically (it's based on some work I did for Xi Advies bv, and it uses Chris Bayes' domtodom.js). The crucial insight is that you can call a function in the main HTML page from within a blank or dummy SVG file. This is the same thing that Chris' Inline SVG utility does, but his works with SVG defined inline with the HTML (a much neater approach). Anyway, the example at http://www.jenitennison.com/xslt/utilities/svg-example.html does a couple of SVG charts, but they're not particularly breath-taking as they weren't the point of the exercise :) Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|