- From: Adam Van Den Hoven <Adam.Hoven@bluezone.net>
- Date: Wed, 23 May 2001 09:04:56 -0700
- To: "SVG Mailing List (E-mail)" <www-svg@w3.org>
I'm working on developing a graph in SVG that I can use as an example out put for an XSL transform. Since I am an essentially lazy person, I want to leave most of the hard work to someone else. Here's what I want to do (approximately) <svg height="10in" width="7.5in" viewBox="-50 -100 100 200" > <!-- Axis stuff here --> <path d="M -50 -100 L 0 75 L 50 0" /> </svg> Now the problem with that is that by drawing convensions the positive Y axis is always pointing down. The typical graphing (not to mention geographic) convension the positive Y axis point up. This would suggest that what I want to have is: <svg height="10in" width="7.5in" viewBox="-50 -100 100 -200" > <!-- Axis stuff here --> <path d="M -50 -100 L 0 75 L 50 0" /> </svg> Which, from my own tests, doesn't seem to work. I've also tried: <svg height="10in" width="7.5in" viewBox="-50 -100 100 200" > <g transform="scale(1, -1)" > <!-- Axis stuff here --> <path d="M -50 -100 L 0 75 L 50 0" /> </g> </svg> But that didn't seem to do anything with my adobe viewer. Also is there anyway to not scale style properties? If I have a graph that I've had to transform to fill the available space, I really don't want to have my strokes go from 2px up to 4px wide by 0.001 px high. I also don't want my text, which I've place in my grid coordinates, to be stretched. Adam van den Hoven Internet Software Developer Blue Zone tel. 604 685 4310 ext. 280 fax 604 685 4391 > Blue Zone makes you interactive. http://www.bluezone.net/ > > >
Received on Wednesday, 23 May 2001 12:16:20 UTC