Announcement

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

    Exporting charts with zoom

    I am exporting a chart with canZoom(true), and it is working correctly. But in the zoom I cannot see the actual area zoomed (the draggable component), just the whole area. So in the exported image it is not clear what area is being zoomed in.
    See screenshot. Is it possible to change this behavior somehow?
    Using smartgwt 5.0 power p20160310
    Click image for larger version

Name:	Bildschirmfoto 2016-03-21 um 12.17.52.png
Views:	62
Size:	79.9 KB
ID:	236001

    #2
    One way to deal with this would be to set zoomSelectionChartProperties to make the selected area visually distinct in some way that shows up in export: a slightly blue background color, for example.

    Comment


      #3
      Thanks, this is working in the browser (the background-color of the selected area is being changed to red) but the background color does not show in the exported image (using 5.1p 22.03.16). Can you please take a look ?
      Code:
      FacetChart zoomChartProperties = new FacetChart();
              zoomChartProperties.setBackgroundColor("red");
              chart.setZoomSelectionChartProperties(zoomChartProperties);

      Comment


        #4
        We see the problem and are looking into it. Just for clarification, can you provide the code snippet you're using to do the export?

        Comment


          #5
          We've committed a fix that should resolve the situation to SGWT 5.1p/SC 10.1p and newer. Lines won't be drawn to indicate the selection region, but the special color you're trying to apply to the zoomSelectionChart above should now work. This will be in the nightly builds dated 2016-03-27 and newer.

          Comment


            #6
            This issue is corrected, thanks

            Comment

            Working...
            X