Google Visualization API Plugin
  1. Google Visualization API Plugin
  2. GPGOOGLEVISUALIZATIONAPI-5

Allow charts with width attributes to take percentages e.x. 100%

    Details

      Description

      We forked the plugin to allow percentages to be passed into width atrrs. The following change was made in *ConfigOption classes...

      Changed:

      WIDTH("width", [DataType.NUMBER])

      To:

      WIDTH("width", [DataType.NUMBER, DataType.STRING])

      <gvisualization:areaCoreChart dynamicLoading="$

      {true}" elementId="wrapperLeadsChart" width="${790}" height="${240}"
      columns="${[['date', 'Year'], ['number', 'Total ' + chartTitle]]}" data="${activity.chartData}"
      colors="'#627CB5'" legend="${'bottom'}" pointSize="${3}" fontSize="${11.5}"
      chartArea="${new Expando(left:50, top:20, width:'700', height:'140')}"
      />

      allowing...

      <gvisualization:areaCoreChart dynamicLoading="${true}

      " elementId="wrapperLeadsChart" width="$

      {'100%'}

      " height="$

      {240}

      "
      columns="$

      {[['date', 'Year'], ['number', 'Total ' + chartTitle]]}

      " data="$

      {activity.chartData}

      "
      colors="'#627CB5'" legend="$

      {'bottom'}

      " pointSize="$

      {3}

      " fontSize="$

      {11.5}

      "
      chartArea="$

      {new Expando(left:50, top:20, width:'100%', height:'140')}

      "
      />

      Percentages are allow by the Google Chart API if you use the straight JavaScript implementation.

        Activity

        Hide
        Benjamin Muschko added a comment -

        I believe the same is true for the attribute height?

        Show
        Benjamin Muschko added a comment - I believe the same is true for the attribute height?
        Hide
        static null added a comment -

        Yes

        Show
        static null added a comment - Yes
        Hide
        static null added a comment -

        Cheers!

        Show
        static null added a comment - Cheers!

          People

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

            Dates

            • Created:
              Updated:
              Resolved: