Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SmartGWT MultiSeries chart JavaScriptException

    Hi,
    I'm using SmartGWT Pro 4.0p-20140221.
    I'm using FacetChart with multiple series and zoom is enabled by calling setCanZoom(true).

    I'm displaying value of a variable on Y axis and time on X axis.
    1st time I set the data for a variable the chart displays fine. 2nd time when I try to display data for a different variable I get

    JavaScriptException: (TypeError): data[start] is undefined.

    The exception is coming from line 9078 of ISC_chart.js. I verified that I'm setting the data correctly and data I'm setting l looks fine.
    The same data displays fine when I select the variable 1st time after the chart is created.

    Can you please help me in figuring out what the problem is?
    Thanks,

    #2
    See the FAQ for how to gather information when you get a JavaScript error.

    Comment


      #3
      Hi,
      This problem does not happen in IDE development environment. Here's the stack trace. I hope this helps.


      "isc_c_FacetChart__createLabelCollapseModeTimeAxis/<.measure@http://vmx0763/cea/CEA_WebClient/sc/modules-debug/ISC_Charts.js:9078isc_c_FacetChart__objective@http://vmx0763/cea/CEA_WebClient/sc/modules-debug/ISC_Charts.js:9491isc_FacetChart__calculateAxisLayout/utilityFn@http://vmx0763/cea/CEA_WebClient/sc/modules-debug/ISC_Charts.js:7654isc_c_FacetChart__localSearch@http://vmx0763/cea/CEA_WebClient/sc/modules-debug/ISC_Charts.js:9661isc_FacetChart__calculateAxisLayout@http://vmx0763/cea/CEA_WebClient/sc/modules-debug/ISC_Charts.js:7656isc_FacetChart_drawChart@http://vmx0763/cea/CEA_WebClient/sc/modules-debug/ISC_Charts.js:1665isc_FacetChart__redrawFacetChart@http://vmx0763/cea/CEA_WebClient/sc/modules-debug/ISC_Charts.js:1587isc_FacetChart_setData@http://vmx0763/cea/CEA_WebClient/sc/modules-debug/ISC_Charts.js:1495.setProperties@http://vmx0763/cea/CEA_WebClient/sc/modules-debug/ISC_Core.js:6836.setProperty@http://vmx0763/cea/CEA_WebClient/sc/modules-debug/ISC_Core.js:6784$setProperty_1@http://vmx0763/cea/CEA_WebClient/677C1BA5E17C39374C57AAFC7DE7FC8C.cache.html:12439$setAttribute@http://vmx0763/cea/CEA_WebClient/677C1BA5E17C39374C57AAFC7DE7FC8C.cache.html:12390$setData_0@http://vmx0763/cea/CEA_WebClient/677C1BA5E17C39374C57AAFC7DE7FC8C.cache.html:49709

      Comment


        #4
        A little ambiguous from this information, but it looks like you've got nulls in the dataset.

        Comment

        Working...
        X