I packaged 10 of the Google Visualization API widgets for Eclipse Rich
AJAX Platform (RAP).
http://www.eclipse.org/newsportal/article.php?id=6366&group=eclipse.technology.rap#6366

For those not aware of RAP, it is a Java UI framework which permits
generating a rich, Eclipse-like UI in the browser.  Compared to GWT,
it has advantages that it is very plugin friendly and totally hides
the client/server communication.  But RAP has steeper learning curve
unless you have Eclipse RCP skills.
http://www.eclipse.org/rap/

The Google Visualization API adds a nice graphical element to RAP.

Example code to render a widget in RAP:

JSONGoogleDataTable dataTable = new JSONGoogleDataTable();
    dataTable.addColumn("theyear", "Date", "string", null);
    dataTable.addColumn("CO2", "CO2", "number", null);
    dataTable.addColumn("Temperature", "Temperature", "number", null);
    dataTable.addRow(new Object[] {"1970", 325, 14.1});
    dataTable.addRow(new Object[] {"2009", 389, 14.7});
    widgetData = dataTable.toString();
        ColumnChart chart = new ColumnChart( composite, SWT.NONE );
    chart.setWidgetOptions("{width: 300, height: 300}");
    chart.setWidgetData(serializedData);
    gridData = new GridData(300, 300);
    chart.setLayoutData(gridData);

...

    public void handleEvent(Event event) {
    log.info("Event: " + event);
    VisualizationWidget widget = (VisualizationWidget)event.widget;
    log.info( "Selected item=" + widget.getSelectedItem() +         ";
row=" + widget.getSelectedRow() +
        "; column=" + widget.getSelectedColumn() +
        "; value=" + widget.getSelectedValue());
}

David Donohue
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" 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-visualization-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to