I needed to add some required functionality for zoom+pan to
Protovis-GWT. You would need to check out protovis-gwt from svn (
http://code.google.com/p/choosel/source/checkout ) to get the version
that supports pan+zoom properly. An example of pan+zoom with
protovis-gwt can be found at:
http://web.uvic.ca/~lgrammel/blog/protovis-gwt/index.html
Cheers,
Lars
On Fri, Apr 1, 2011 at 00:42, Guillaume GODIN
<Guillau...@firmenich.com> wrote:
>
> Dear M Grammel,
>
>
>
> I would like to know how easily I can reproduce the “protovis” example “http://vis.stanford.edu/protovis/ex/transform.html” using your protovisgwt package.
>
>
>
> I need to add the same behaviors’ (Zoom and Pan) in IcicleExample.java. Could you give me a short example, please?
>
>
>
> Thanks a lot for your beautiful job.
>
>
>
> Regards,
>
>
>
> Dr. Guillaume GODIN
>
> Project Manager
>
> Innovation
>
> CORPORATE R&D DIVISION
>
> DIRECT LINE +41 (0)22 780 3645
>
> MOBILE +41 (0)79 536 1039
>
> Firmenich SA
>
> RUE DES JEUNES 1 | CASE POSTALE 239 | CH-1211 GENEVE 8
>
> TEL +41(0)22 780 2211 | Fax. +41(0)22 780 3334 | www.firmenich.com
>
>
>
>
>
> **********************************************************************
> DISCLAIMER
> This email and any files transmitted with it, including replies and forwarded copies (which may contain alterations) subsequently transmitted from Firmenich, are confidential and solely for the use of the intended recipient. The contents do not represent the opinion of Firmenich except to the extent that it relates to their official business.
> **********************************************************************
>
--
Lars Grammel
PhD Candidate, University of Victoria
http://larsgrammel.de
http://lgrammel.blogspot.com/
http://twitter.com/lgrammel
I added a sunburst visualization with pan + zoom to the protovis-gwt examples:
http://web.uvic.ca/~lgrammel/blog/protovis-gwt/index.html
The code is in SVN.
To get colors per subcategory, you might want to look at the
BubbleChart example, which does something similar:
.fillStyle(new JsFunction<PVColor>() {
public PVColor f(JsArgs args) {
PVDomNode d = args.getObject();
return category20.fcolor(d.<ClassData>
nodeObject().packageName);
}
}
Hope that helps,
Lars
On Mon, Apr 4, 2011 at 02:10, Guillaume GODIN
<Guillau...@firmenich.com> wrote:
> Hi Lars,
>
> Again thanks for your example with Pan&Zoom and the modifications of your wrapper.
>
> So Pan&Zoom works for me now.
>
> After mixing Pan&Zoom + Sunburst, I cannot find how to modify directly the "x,y" values of the layout of Sunburst.
>
> I can see the zoom effect on the grid. Any Idea to modifiy the Sunburst layout using the zoom event?
>
> Another question related to the color in the sunburst. I wonder if I can assign a color of all members of a subtree and not the PV.Colors.categoryX(). In this case I need to create a color array for all my subtrees but How to assign the
> Color A to subfamilie A, Color B to subfamilie B, etc...
>
> Thanks in advance,
>
> Regards,
>
> Guillaume