Agreed. It's very well priced as well.
The main drawback of amcharts is that there is no ability to generate
server-side charts (it's all flash, and restricted to client side for
the time being). You'll have to generate charts for pdf's if you need
them using another solution like jfreechart.
Another hiccup we faced was getting them to display - sometimes there
are errors (I forget the reason, but they are intermittent).
You'll have to include swfobject.js as a script, and then the
following code should help:
public void build() {
try {
if (!buildInternal(swfUrl, settingsFile, dataUrl, path,
height,
width < 101 ? width + "%" : width + "",
preloaderColour,
backgroundColour, divID)) {
new Timer() {
public void run() {
build();
}
}.schedule(2000);
}
} catch (final Exception e) {
log(e);
// this happens when the user changes pages before we
have built
}
}
/**
* This calls out to the SWFObject class to build the flash widget
itself
*/
private native boolean buildInternal(String swfUrl, String settings,
String dataUrl, String path, int height, String width,
String preloaderColour, String backgroundColour, String
divID) /*-{
if( typeof($wnd.deconcept) == "undefined" || $wnd.deconcept ==
null ) return false;
var so = new $wnd.deconcept.SWFObject(swfUrl, "amline", width,
height, "8",
backgroundColour);
so.addVariable("path", path);
so.addVariable("chart_settings", escape(settings));
so.addVariable("data_file", escape(dataUrl));
so.addVariable("preloader_color", escape(preloaderColour));
so.addParam("wmode", "transparent");
so.write(divID);
return true;
}-*/;
Joe
On Sep 16, 12:53 pm, Tim <[EMAIL PROTECTED]> wrote:
> amcharts (http://www.amcharts.com) someone mentionned earlier looks
> extremely impressive. It seems they also have the world map charting
> widget as wellhttp://www.ammap.com/, which is quite cool as well.
>
> On Sep 14, 8:02 pm, Arthur Kalmenson <[EMAIL PROTECTED]> wrote:
>
> > Hello Nathan,
>
> > I'd recommend that Google Visualization
> > API:http://code.google.com/apis/visualization/
>
> > There are GWT overlays in the works at the GALGWT project (http://
> > code.google.com/p/gwt-google-apis/). See the issue
> > here:http://code.google.com/p/gwt-google-apis/issues/detail?id=130
>
> > On Sep 12, 1:04 pm, Nathan <[EMAIL PROTECTED]> wrote:
>
> > > I've been investigating the best way to do client-side graphing in
> > > GWT. The features that I am looking for that don't seem to be widely
> > > provided are the ability for users to select portions of the graph,
> > > and to receive events for mouse clicks on any part of the graph. I
> > > also can't use a solution that uses flash (IE support however, is not
> > > important).
>
> > > The solution I'm currently considering is to write a bunch of
> > > JavaScript Overlay classes for use with flot
> > > (http://code.google.com/p/flot/
> > > ).
>
> > > As far as I can tell, gchart (http://code.google.com/p/gchart/) is
> > > the only native GWT graphing solution, but has no events support. I
> > > also looked into the dojox charting library, but flot seems to have
> > > better events support (particularly the ability to click on any point
> > > in the graph and get an event with the graph coordinates for the point
> > > clicked).
>
> > > Are there any projects out there that I've missed? I'd really like a
> > > native GWT solution, if possible.
>
> > > Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---