Announcement

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

    WARN:ListGrid:isc_ListGrid_1:Unable to create autoChild 'chart' of type 'FacetChart'

    I'm trying to get a chart using ListGrid. Below is the code im using to this. I get the error above.

    Code:
    boundList.addDataArrivedHandler(new DataArrivedHandler() {
                public void onDataArrived(DataArrivedEvent dataArrivedEvent) {
                    SC.say("hey");
                    FacetChart fC = new FacetChart();
                    fC.setChartType(ChartType.PIE);
                    FacetChart fk = boundList.chartData("EmployeeId",null,null,fC,true);
                    vStack.addMember(fk);
                }
            });
    Can somebody check if I'm doing something wrong.
    I see the following in the Developer Console:

    Code:
    15:31:52.590:XRP3:WARN:ListGrid:isc_ListGrid_1:Unable to create autoChild 'chart' of type 'FacetChart' - no such class in runtime.

    #2
    This suggests that you haven't loaded ISC_Analytics.js or ISC_Drawing.js or both. This is automatic if you've inherited the right modules in your .gwt.xml file, but possible you didn't?

    Comment


      #3
      Following is my gwt.xml file:

      Code:
      <!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.0//EN"
              "http://google-web-toolkit.googlecode.com/svn/releases/2.0/distro-source/core/src/gwt-module.dtd">
      <module rename-to="builtinds">
      
          <inherits name='com.google.gwt.user.User'/>
      
          <inherits name="com.smartgwtee.SmartGwtEE"/>
      
          <entry-point class='com.smartgwt.sample.client.BuiltInDS'/>
      
      </module>

      Comment


        #4
        Add these additional two <inherits>, in this order:

        Code:
        <inherits name="com.smartgwt.Drawing"/>
        <inherits name="com.smartgwt.Analytics"/>

        Comment


          #5
          Hi,

          Does your PIE work? It seems like the ChartTypes PIE, DOUGHNUT and BAR do not work. I don't see any data when I use them. Are they already supported?

          Other question: How do I manipulate parts of the chart, e.g. the legenda, the labels on the axes? I've tried using getChildren.
          I don't want any text under each data column.


          thanks,
          SmartGWT EE 24-03-2011

          Comment


            #6
            Hi,

            You can manipulate parts of the chart by using the following method on listGrid:

            Code:
            FacetChart fc= new FacetChart();
            fc.setChartType(ChartType.COLUMN);
            chartData("EmployeeName", new String[]{"salary"}, null,fc , true);
            The above code will actually plot Salary of employees as a column chart: So it plots different empoyees on the X-axis and Y-axis is used to project the Employee salary. You can project multiple fields on to Y-axis by adding those fields to the String array you are passing.

            And with regard to other questions I'm not sure as I just started use SmartGWT.

            Hope this helps.

            Comment


              #7
              We don't have Pie or Doughnut yet - both are planned, no ETA as yet. There isn't technically a Bar mode either yet (horizontal bars) just Column (vertical bars).

              Why would you want to remove data labels entirely?

              Comment


                #8
                It would be prettier. In the showcase Basic CubeGrid example: the grid could already show the region and product facets in the color they would appear in the chart. Having the grid near the chart, it's a bit more repeating of the same info.

                Comment


                  #9
                  I want to display datalables in pie and bar chart .What is possibility to display data on the chart .

                  Comment

                  Working...
                  X