Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: Grails-Google-Visualization-API 0.4.3
-
Fix Version/s: Grails-Google-Visualization-API 0.5
-
Labels:
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="$
" data="$
{activity.chartData}"
colors="'#627CB5'" legend="$
" pointSize="$
{3}" fontSize="$
{11.5}"
chartArea="$
"
/>
Percentages are allow by the Google Chart API if you use the straight JavaScript implementation.
I believe the same is true for the attribute height?