Details

      Description

      Google introduced an option called "forceIFrame" which by default is set to true (https://developers.google.com/chart/interactive/docs/release_notes).

      I am currently creating a dashboard using Jquery ui portlet (sortable). Everytime I drag the portlet to a new position it disappears(see before and after image). I have been checking around to find an answer and found that I need to set that "forceIFrame" to false so that my charts don't disappear when being dragged and dropped to a new position in my dashboard.

      I managed to fix it by adding FORCEIFRAME("forceIFrame", [DataType.BOOLEAN]) option in your plugin to all chart classes and it works (except the deprecated ones).

      Stacktrace:

      Error 2012-08-15 07:52:21,562 [http-bio-8080-exec-10] ERROR
      Attribute 'forceIFrame' is not a valid option for Google Visualization 'google.visualization.BarChart'!. Stacktrace follows:
      Message: Error processing GroovyPageView: Error executing tag <sitemesh:captureContent>: Error executing tag <g:render>: Error executing tag <grimPortlet:totalUsersByRole>: Attribute 'forceIFrame' is not a valid option for Google Visualization 'google.visualization.BarChart'!

      Would it be possible to add the "forceIFrame" option in your options in the plugin for all charts?

      Thanks.

      1. After.png
        78 kB
      2. Before.png
        119 kB

        Activity

        Hide
        Benjamin Muschko added a comment -

        Sure, we can add it. At the moment I am really busy so I won't have too much time to look at it. Would you mind sending me a pull request to the [repository on GitHub](https://github.com/bmuschko/grails-google-visualization)?

        Show
        Benjamin Muschko added a comment - Sure, we can add it. At the moment I am really busy so I won't have too much time to look at it. Would you mind sending me a pull request to the [repository on GitHub] ( https://github.com/bmuschko/grails-google-visualization)?
        Hide
        Dony Tandijono added a comment -

        I have sent the pull request that you asked. Please help to review.

        Thanks.

        Show
        Dony Tandijono added a comment - I have sent the pull request that you asked. Please help to review. Thanks.
        Hide
        Dony Tandijono added a comment -

        I have committed the test app here for your reference:
        https://github.com/sdonyh/GoogleVisualizationTestApp

        Show
        Dony Tandijono added a comment - I have committed the test app here for your reference: https://github.com/sdonyh/GoogleVisualizationTestApp
        Hide
        Dony Tandijono added a comment -

        The test app works with the new version release

        Show
        Dony Tandijono added a comment - The test app works with the new version release

          People

          • Assignee:
            Benjamin Muschko
            Reporter:
            Dony Tandijono
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: