Announcement

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

    FacetChart in a Portlet

    Hi,

    I've added a FacetChart (of type Pie Chart) in a portlet, which is then added in a PortalLayout. The chart correctly fetches the data and displays nicely.
    The problem I've got is that whenever I drag and drop the portlet from a column to an other, the facet seems to be redrawn on the top of the previous one... See attached screenshot.

    I do nothing special when dropping the portlet and did not play with all the FacetChart options yet. Is it a bug ?

    Thanks and regards,

    Thomas
    Attached Files

    #2
    We can't really troubleshoot a screenshot. If you've got nothing special going on, are you able to take one of the PortalLayout samples from the Showcase, add in a FacetChart, and reproduce the issue in such a way that we could run the code?

    Comment


      #3
      No worry, here is a sample which does not work correctly:

      Code:
      PortalLayout test = new PortalLayout(3);
      test.setColumnWidth(0, 250);
      test.setColumnWidth(1, 250);
      
      FacetChart chart = new FacetChart();
      Record data = new Record();
      data.setAttribute("VALUE", 123);
      data.setAttribute("FOO", "Hello");
      chart.setChartType(ChartType.PIE);
      chart.setData(new Record[] {data});
      chart.setValueProperty("VALUE");
      chart.setFacets(new Facet("FOO", "FOO"));
      Portlet p = new Portlet();
      test.addPortlet(p);
      		
      test.setWidth100();
      test.setHeight100();
      p.addItem(chart);
      test.draw();
      The "setColumnWidth" calls seem to be the source of the problem. If I remove those, it's ok.

      Regards,
      Thomas

      Comment


        #4
        An engineer is looking into this, we'll get back to you

        Comment


          #5
          We have established that this problem is specific to Internet Explorer. Coincidentally, a change was committed today that makes this problem go away in IE9+, so that may fix the problem for your purposes. We are still looking into a fix for older versions of IE - we'll post on this thread when we have more to say.

          Comment


            #6
            Thank you very much!

            Thomas

            Comment

            Working...
            X