|
inserting SVG objects into my web page |
Posted by Osman Erdem Asga on Apr-16-2012 16:33 |
|
Hello,
I wonder how i can insert svg html into my web page document. I am using makeSession to
generate charts and use the url to retrieve charts. Currently i set the returned url to source
of the <img> then it becomes sth like : <img> src="/GetSessionImage?img=ab342888-a100-
4e45-97de-85f67cd129da&id=1kn71fnbgc0wi_13&stype=.svg" </img> . When i go to that
URL i see the actual SVG object there, but i wonder how i can get it inserted to my own
web page document?
Thanks
Osman Erdem Asga |
Re: inserting SVG objects into my web page |
Posted by Peter Kwan on Apr-17-2012 03:25 |
|
Hi Osman,
You can display ChartDirector generated SVG just like any standard SVG.
I am not aware if any browser supports using <IMG> tag display SVG. I usually use the <OBJECT> tag, like:
<object data="aaa.svg" type="image/svg+xml" width="500px" height="400px"></object>
Hope this can help.
Regards
Peter Kwan |
|