On Sep 22, 1:05 pm, "Kevin S." <[email protected]> wrote:
> Hi I'm use the GWT visualization api. I can set simple options like
> background color, but I can't figure out how to set the more
> complicated ones. For example, here is an attempt to set the legend
> style. I do not get any errors, but my legend text does not change.
>
> Here I am setting up a PieChart.Options object.
>
> options.set("backgroundColor", "yellow"); // <--- This works
> fine
>
> Properties propLegendTextStyle = Properties.create();
> propLegendTextStyle.set("color", "green");
> propLegendTextStyle.set("fontSize", 16.);
> propLegendTextStyle.set("fontName", "arial");
>
> options.set("legendTextStyle", propLegendTextStyle); // <---
> This does nothing.
>
> -Kevin
The solution to the problem was to change the line
VisualizationUtils.loadVisualizationApi(onLoadCallback,
PieChart.PACKAGE);
to
VisualizationUtils.loadVisualizationApi(onLoadCallback,
"corechart");
as described here:
http://code.google.com/p/gwt-google-apis/wiki/VisualizationFAQ#How_do_I_use_the_updated_Chart_look_and_feel?
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.