Menu

Exception in Stacked Area example w/ SmartGwt

2013-03-05
2013-03-06
  • Anthony McCulley

    Using the highstock.js from this post:
    https://sourceforge.net/p/gwt-highcharts/discussion/general/thread/b546144c/

    Also using the highcharts-more.js (from highstock 1.2.5).

    When trying the showcase example Stacked Area:
    http://www.moxiegroup.com/moxieapps/gwt-highcharts/showcase/#featured-area

    I'm getting the following exception several times when I hover over a portion of the chart:
    Uncaught JavaScript exception [uncaught exception: com.google.gwt.dev.shell.HostedModeException: Something other than a double was returned from JSNI method '@org.moxieapps.gwt.highcharts.client.ToolTipData::getXAsDouble()': JS value of type string, expected double] in , line 0

    Any ideas?

     
  • Shawn Quinn

    Shawn Quinn - 2013-03-05

    I believe the showcase application also uses that same version of highstock.js and highcharts-more.js, so not exactly sure what the difference is. Can you try calling 'toolTipData.getXAsString()' in the formatter instead to see if that works? Looking at that code a little closer, that's probably how that example should have been written anyways since the categories/years are setup as strings (so we'll probably change that in the showcase application.)

     
    • Anthony McCulley

      That worked! Thanks.

      We haven't gotten into all of the nuances of the charts yet. We are just setting up our internal showcase for now and ensuring all the SmartGwt, Gwt-Highcharts, themes, etc work together and we were just using the showcase examples with only style-related things removed.

      Thanks for the heads up on this.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.