protovis+svgweb - IE8 double render?

40 views
Skip to first unread message

Eric Larson

unread,
Jan 23, 2011, 1:41:23 PM1/23/11
to protovis
I'm using jlove's protovis with svgweb to render an area chart.
Everything works lovely, except in IE8 svgweb renders the chart
twice! Firefox, Safari and Chrome all render the chart via svgweb a
single time.
http://pastie.org/1490479

Am I missing something obvious? I adore protovis, but need IE
support.

Cheers,
- Eric

Jamie Love

unread,
Jan 26, 2011, 2:07:08 AM1/26/11
to prot...@googlegroups.com
Hiya,

Are you able to provide a working example at a website, or the
necessary data /html files via email (feel free to email me directly).
I see no apparent reason for the second render to occur.

There may be a bug in the SVGWeb rendering code as part of protovis.

Jamie

> --
> You received this message because you are subscribed to the Google Groups "protovis" group.
> To post to this group, send email to prot...@googlegroups.com.
> To unsubscribe from this group, send email to protovis+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/protovis?hl=en.
>
>

--
Jamie Love
Looking for custom software development? Contact us at www.nsquaredsoftware.com.

Pedro Alves

unread,
Jan 26, 2011, 4:48:55 AM1/26/11
to prot...@googlegroups.com

No bug in svgweb + protovis iirc. At a point in time we saw that
behavior, and had to do with the way the svgweb was initialized.


Check http://www.webdetails.pt/ccc/pvcTest.html , you should see only
one render of it, hope it helps


-pedro

Jamie Love

unread,
Jan 26, 2011, 10:21:26 PM1/26/11
to prot...@googlegroups.com
Pedro, was there a code change you made to help with that? if so I
can merge to jloves-protovis.

--

bstaats

unread,
Feb 20, 2011, 7:13:19 PM2/20/11
to protovis
I think I figured it out... the duplication happens when you have
another <script> tag within the body. The number of scripts tags
dictate the number of duplicates. I had 10 until I put everything into
the header. This happens regardless of the scripts content. I placed
an empty tag and it still caused the duplication. <script type="text/
javascript" charset="utf-8"></script>

Any thoughts?

On Jan 26, 10:21 pm, Jamie Love <drjl...@gmail.com> wrote:
> Pedro, was there a code change you made to help with that?  if so I
> can merge to jloves-protovis.
>
>
>
>
>
>
>
>
>
> On Wed, Jan 26, 2011 at 10:48 PM, Pedro Alves <pmgal...@gmail.com> wrote:
>
> > No bug insvgweb+ protovis iirc. At a point in time we saw that behavior,
> > and had to do with the way thesvgwebwas initialized.
>
> > Checkhttp://www.webdetails.pt/ccc/pvcTest.html, you should see only one
> > render of it, hope it helps
>
> > -pedro
>
> > On 01/26/2011 07:07 AM, Jamie Love wrote:
>
> >> Hiya,
>
> >> Are you able to provide a working example at a website, or the
> >> necessary data /html files via email (feel free to email me directly).
> >>   I see no apparent reason for the second render to occur.
>
> >> There may be a bug in theSVGWebrendering code as part of protovis.
>
> >> Jamie
>
> >> On Mon, Jan 24, 2011 at 7:41 AM, Eric Larson<ewlar...@gmail.com>  wrote:
>
> >>> I'm using jlove's protovis withsvgwebto render an area chart.
> >>> Everything works lovely, except in IE8svgwebrenders the chart

pb30

unread,
Feb 23, 2011, 4:41:33 PM2/23/11
to protovis
I've noticed this as well. Have you found a fix aside from moving the
script tags to <head> or elsewhere?

bstaats

unread,
Feb 24, 2011, 10:25:02 AM2/24/11
to protovis
nope. :(

Danilo

unread,
Mar 17, 2011, 7:28:41 AM3/17/11
to protovis
I'm also looking for a fix. Would be very helpful.

bstaats

unread,
Mar 17, 2011, 4:06:32 PM3/17/11
to protovis
I proposed a work around. It's not a fix but it works

Danilo

unread,
Mar 18, 2011, 7:04:49 AM3/18/11
to protovis
Hi Brian

Yeah, I saw that, but it's not always easy to do, especially if you
rely on some AJAX stuff that you insert into the body of the HTML
document. Also, the "correct" place for script tags is at the end of
the <body> element :)

Does anyone even know where the source of the bug is? Protovis?
svgweb? IE?

Danilo
Reply all
Reply to author
Forward
0 new messages