Hi,

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/



On Nov 18, 9:34 am, Darren Salomons <salom...@gmail.com> wrote:
> Hi Rob,  I see your demo on the site with highcharts but I don't see it in
> the code on googlecode.  Is there a different codebase that you are working
> on for the highcharts integration?
>
> Thanks!  Darren

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to