Re: SVG Data Technique

Funny you should mention it - this has been considered before.

Making it a pie chart would require trig functions in XSLT - they can be
written using XSLT 1.0 and the Mclaurin / Taylor expansions, but it is easier
to wait for 1.1, or use extension functions.

Making it a bar chart is much easier. One example of a styleshet that does
thiswas written by Max Froumentin, and the information is available from
http://www.w3.org/People/maxf/music

In other words, this is difficult in terms of taking a few hours perhaps, and
thinking carefully about what kind of data it can eat. Maybe the tables will
need to be identified by an RDF pointer, or maybe by a class that is
well-defined, if you use HTML. (Oh for XML fragments and packaging!). But it
works, is ont impossible, and people are thinking about it.

cheers

Charles


On Thu, 4 Jan 2001, Sean B. Palmer wrote:

  Chaals: you're the obvious one to take interest in this, but I'm CC'ing it
  to GL just in case:-

  I was thinking the other day that it would be neat if CSS gave you a way of
  presenting table data as a pie chart; but then I realised you should be
  able to do it with SVG instead.
  Details: If you had a suitably marked up XHTML table, could you use XSLT to
  convert that into an SVG chart? Technically, it should be feasable, but
  practically it might be more bother than it's worth...

  Taking it even further, (in XHTML 2.0???) you might be able to have a link
  underneath your table, with an XLink embed to the SVG version of it. Great!
  Or, it might be wiser to encode that data in the table itself, in the form
  of rdfs:seeAlso="my SVG transform" or something so that people can can at
  will use your transforms or some of their own...

  The accessible Web of the future awaits...

  Kindest Regards,
  Sean B. Palmer
  http://infomesh.net/sbp/
  "Perhaps, but let's not get bogged down in semantics."
     - Homer J. Simpson, BABF07.


-- 
Charles McCathieNevile    mailto:charles@w3.org    phone: +61 (0) 409 134 136
W3C Web Accessibility Initiative                      http://www.w3.org/WAI
Location: I-cubed, 110 Victoria Street, Carlton VIC 3053, Australia
until 6 January 2001 at:
W3C INRIA, 2004 Route des Lucioles, BP 93, 06902 Sophia Antipolis Cedex, France

Received on Thursday, 4 January 2001 10:19:49 UTC