I've updated protovis+SVGWeb (IE support) - available here:
http://gitorious.org/~jlove/protovis/jloves-protovis
It now uses the latests SVGWeb, which now requires Flash 10. It also
includes support for rotated text (!) and fixes the issues with
wedges.
I ran through the examples, seeing which ones worked (IE):
antibiotics: Ok
antibiotics-scatter: Ok
barley: Ok
cars: Ok
Clock: Ok
Crimea: Ok
Flowers: Ok
group-stack: Ok
Hotel: Ok
Jobs: Ok (better than before - used to go over top border)
Nba: Ok
Sankey: Ok,
Slider: Ok, though flickers
Tipsey: Ok
Wheat: Ok, though without italicised text.
This is excellent news - and while I'd like to take credit for working
long and hard on this - I can't, it is just the improvements in SVGWeb
and Flash 10.1.
Note that while rotated text works, the quality of the text leaves
something to be desired - so if you're looking to use it, be prepared
to tweak a bit to get it looking good.
--
Jamie Love
Looking for custom software development? Contact us at www.nsquaredsoftware.com.
Mike
Bah! My credits are all to you :D
Excellent news!!!
-pedro
I've just tested with IE8, and your example shows up well under IE8 in
my test system here.
Here are some things to try:
1/ I believe that IE 64-bit doesn't work.
2/ Ensure that svg.swf and svg.js are in the same directory as the
html file (given your setup in the example you provide).
3/ Ensure you access the html file through a web server, and not
through opening the file directly.
Can you try a simpler example (e.g. one of the tests in the
jloves-protovis/tests/ directory) and see if they run - the
jloves-protovis/tests/mark/area.html one is easy and should run.
Note that IE6 may not work. I have not tested the svgweb integration under IE6.
Jamie
On Fri, Aug 20, 2010 at 7:14 PM, marco <piov...@esteco.com> wrote:
> Hi i'm using the parallel coordinates plot (cars example) with some
> modifications and running pretty well on chrome and FF (with the
> library protovis protovis-d3.2.js that there's on the main page of the
> site).
> Unfortunately i need it working also on IE (6 and 8) but i can't make
> it working. I tried to download the files from "http://gitorious.org/
> ~jlove/protovis/jloves-protovis" (i also tried to recompile it) but
> when i try to use protovis-d3.3.js i get the error "Object doesn't
> support this property or method (line379)(protovis-d3.3.js)".
> I tried with some examples too (running from a server) but i can see
> just a blank page. I tried to use a previous library (another d3.2)
> and with that i can run the example area chart (but not the car one).
> What am i doing wrong? (below there's the page with the car example
> that i'm running)
>
[snip]
> --
> 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.
I know that most of Jamie's examples don't work with IE7 and the flash
version I am _stuck_ with at work. I don't have the option of
experimenting with other versions to see if it makes a difference.
(I don't run Windows at home.)
> this is super-weird... The svg.swf and svg.js are in the same
> directory as the html file (with svg.htc too), i'm using a web server
> and i tried with a IE 32bit (i was using 64) but the graph is not
> showing up. I tried with the "area.html" example as you suggested but
> nothing also with that one, no errors but blank page... i'm kinda
> lost..
>
> Btw, the example "area.html" is using protovis-d3.2.js ....
>
--
Rick Otten
rot...@windfish.net
O=='=+
--
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.
What version of flash are you needing to use?
The latest version of SVGWeb is flash 10, but an earlier one uses
flash 9 - the commit you'd want is this:
http://gitorious.org/~jlove/protovis/jloves-protovis/commit/45e2984421b64d822a554eab5b201405ffc61f54
> --
> 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.
>
>
--
I've fixed this and pushed the fix to gitorious.
--
So it's now working in IE? great!
The 'every' function call is quite possibly something that isn't
supported by all browsers - I don't know why it might work when using
javascript+protovis - that shouldn't matter.
The easiest way to make it work is to add the following code into your
file prior to the graph code:
if (!Array.prototype.every)
{
Array.prototype.every = function(fun /*, thisp*/)
{
var len = this.length;
if (typeof fun != "function")
throw new TypeError();
var thisp = arguments[1];
for (var i = 0; i < len; i++)
{
if (i in this &&
!fun.call(thisp, this[i], i, this))
return false;
}
return true;
};
}
(from http://www.tutorialspoint.com/javascript/array_every.htm)
On Sat, Aug 21, 2010 at 3:15 AM, marco <piov...@esteco.com> wrote:
> I know... i'm probably asking too much but i have a million dollar
> question now:
> i can run the cars example on IE6 and IE8 using the protovis-d3.2.js
> library for IE and specifying the script type="text/javascript
> +protovis".
> As you probably all know for the "line" object there's a parameter
> called "visible", setting that with a function let us show or not some
> of the lines. In the original cars example there's the line:
>
> .visible(function(d) {return dims.every(function(t){return (d[t] >=
> filter[t].min) && (d[t] <= filter[t].max);});})
>
> this is used to draw just the lines with values (d[t]) that are into
> the domain (filter[t].min, filter[t].max)
>
> NOW THE PROBLEM: With the mentioned d3.2 version of the library when i
> use "dims.every" the result is a blank page without any error... Is
> that because "every" is a javascript function and i'm using the script
> type "javascript+protovis" (the system tries to find it in the
> protovis library only and not in the javascript one)?
> I tried to write Array.every(dims, (function(d){......}) but is not
> working either.... any suggestions?
>
>
> On 20 Ago, 15:12, marco <pioves...@esteco.com> wrote:
>> thumb up for you jason, i'm still having a blank page but at least
>> there's no more the error at line 370...
>>
>> On 20 Ago, 14:29, Jason Davies <ja...@jasondavies.com> wrote:
>>
>>
>>
>> > You'll want to replace line 370, which is currently:
>>
>> > window.addEventListener( "SVGLoad", listener, false );
>>
>> > with something like:
>>
>> > if ( document.addEventListener ) {
>> > window.addEventListener( "SVGLoad", listener, false );} else if ( document.attachEvent ) {
>>
>> > window.attachEvent( "SVGLoad", listener);
>>
>> > }
>>
>> > On 20 Aug 2010, at 13:26, Jason Davies wrote:
>>
>> > > Looking at line 370 of Jamie's protovis-d3.3.js, could it be due toIEnot supporting window.addEventListener?
>>
>> > > Seehttps://developer.mozilla.org/en/DOM/element.addEventListener#Interne...the alternative, using window.attachEvent.
>>
>> > > On 20 Aug 2010, at 13:14, marco wrote:
>>
>> > >> jamie: i didn't know thatIEhas a developer tool (good to know)... I
--
Mike
--
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.
Flash is ok, is one of the first things i checked but it can be that
i'm using wrong names for some functions, there's any document about
these changes? because i can't find anything in the repository...
I sent you the e-mail with the example... thanks a lot for your help..
> > protovis+u...@googlegroups.com<protovis%2Bunsubscribe@googlegroups.c om>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/protovis?hl=en.
>
> --
> Jamie Love
> Looking for custom software development? Contact us atwww.nsquaredsoftware.com.
To unsubscribe from this group, send email to protovis+u...@googlegroups.com.
To unsubscribe from this group, send email to protovis+u...@googlegroups.com.
--
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.
--
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.
To unsubscribe from this group, send email to protovis+u...@googlegroups.com.