Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Grails-Google-Visualization-API 0.5.3
    • Labels:
      None

      Description

      vAxes is needed for applying multiple vertical axes to the chart. (https://google-developers.appspot.com/chart/interactive/docs/gallery/linechart#Configuration_Options)

      I managed to fix it by adding the following line to the LineCoreChartConfigOption.groovy:
      V_AXES("vAxes", [DataType.ARRAY, DataType.OBJECT])

      Stacktrace:
      2012-08-11 19:11:40,432 [http-bio-8080-exec-1] ERROR errors.GrailsExceptionResolver - IllegalArgumentException occurred when processing request: [POST] /chart/renderChart
      Attribute 'vAxes' is not a valid option for Google Visualization 'google.visualization.LineChart'!. Stacktrace follows:
      java.lang.IllegalArgumentException: Attribute 'vAxes' is not a valid option for Google Visualization 'google.visualization.LineChart'!
      at org.grails.plugins.google.visualization.GoogleVisualizationTagLib$_validateAttributes_closure35.doCall(GoogleVisualizationTagLib.groovy:181)
      at org.grails.plugins.google.visualization.GoogleVisualizationTagLib.validateAttributes(GoogleVisualizationTagLib.groovy:179)
      at org.grails.plugins.google.visualization.GoogleVisualizationTagLib.validateAndRender(GoogleVisualizationTagLib.groovy:166)
      at org.grails.plugins.google.visualization.GoogleVisualizationTagLib$_closure22.doCall(GoogleVisualizationTagLib.groovy:113)

        Activity

        Hide
        Kim Foudila added a comment -

        I'm not sure whether the allowed datatypes that I defined for it are actually the right ones, but it works for me with those values.

        Show
        Kim Foudila added a comment - I'm not sure whether the allowed datatypes that I defined for it are actually the right ones, but it works for me with those values.

          People

          • Assignee:
            Benjamin Muschko
            Reporter:
            Kim Foudila
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: