Use pure GWT charting http://code.google.com/p/clientsidegchart/ For the real Web apps it is an excellent library. It lacks some fancy stuff but works excellent with all other GWT including drag/drop packages so you can easily build dashboards. I did my own prototypes including real time charting and consider it an excellent library that you can easily customize for your needs
-Sergey
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/K6LnaWB69icJ.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
I think you have a problem to show both image and interactive chart to have the same L&F. You should use the same charting library for that. Some people in the past used JFreeChart creating the same chart image on the server and then interactive one on the browser applet. Nowadays you can use combination of Highcharts or GWT charts on the browser side for interactive charts and Node.js or some headless WebKit (PhantomJs) on the server to make chart images from the same code
-Sergey
From: google-we...@googlegroups.com [mailto:google-we...@googlegroups.com]
On Behalf Of George Agiasoglou
Sent: Monday, November 07, 2011 9:32 AM
To: google-we...@googlegroups.com
Subject: Re: Highcharts - updating chart with data
Thank you for your suggestion, but this is not what I need.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/azV2H7zXuf0J.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
I haven't checked in the changes yet.
He's the code for the HighCharts.gwt.xml:
->
<module>
<public path="public" />
<inherits name="org.moxieapps.gwt.highcharts.Highcharts"/>
<script src="gwtcx/charts/highcharts/javascript/
jquery-1.5.2.min.js" />
<script src="gwtcx/charts/highcharts/javascript/highcharts.js" />
</module>
->
And, the Dashboards view:
->
public class SerendipityHighChartsDashboardsView extends
DashboardsView<DashboardsUiHandlers> implements
SerendipityDashboardsPresenter.MyView {
// @Inject
public SerendipityHighChartsDashboardsView() {
super();
// panel.setOverflow(Overflow.AUTO);
if (GWT.isScript()) {
HLayout northLayout = new HLayout();
northLayout.setHeight("50%");
northLayout.setBackgroundColor("white");
northLayout.setMembersMargin(8);
final Chart chart1 = createDynamicSplineChart();
chart1.setWidth100();
final Canvas chart1Container = new Canvas();
final WidgetCanvas chart1WidgetCanvas = new
WidgetCanvas(chart1);
chart1Container.addResizedHandler(new ResizedHandler() {
public void onResized(ResizedEvent event) {
chart1.setSize(chart1Container.getWidth(),
chart1Container.getHeight(), false);
}
});
chart1Container.addDrawHandler(new DrawHandler() {
public void onDraw(DrawEvent event) {
chart1.setSize(chart1Container.getWidth(),
chart1Container.getHeight(), false);
}
});
final Chart chart2 = createSplineWithPlotBandsChart();
chart2.setWidth100();
final Canvas chart2Container = new Canvas();
final WidgetCanvas chart2WidgetCanvas = new
WidgetCanvas(chart2);
chart2Container.addResizedHandler(new ResizedHandler() {
public void onResized(ResizedEvent event) {
chart2.setSize(chart2Container.getWidth(),
chart2Container.getHeight(), false);
}
});
chart2Container.addDrawHandler(new DrawHandler() {
public void onDraw(DrawEvent event) {
chart2.setSize(chart2Container.getWidth(),
chart2Container.getHeight(), false);
}
});
chart1Container.addChild(chart1WidgetCanvas);
chart2Container.addChild(chart2WidgetCanvas);
northLayout.addMember(chart1Container);
northLayout.addMember(chart2Container);
HLayout southLayout = new HLayout();
southLayout.setHeight("50%");
southLayout.setBackgroundColor("white");
final Chart chart3 = createStackedAreaChart();
chart3.setWidth100();
final Canvas chart3Container = new Canvas();
final WidgetCanvas chart3WidgetCanvas = new
WidgetCanvas(chart3);
chart3Container.addResizedHandler(new ResizedHandler() {
public void onResized(ResizedEvent event) {
chart3.setSize(chart3Container.getWidth(),
chart3Container.getHeight(), false);
}
});
chart3Container.addDrawHandler(new DrawHandler() {
public void onDraw(DrawEvent event) {
chart3.setSize(chart3Container.getWidth(),
chart3Container.getHeight(), false);
}
});
chart3Container.addChild(chart3WidgetCanvas);
southLayout.addMember(chart3Container);
panel.addMember(northLayout);
panel.addMember(southLayout);
}
}
->
Cheers
Rob
http://code.google.com/p/gwt-cx/