andydoroga1989 / gwt-google-apis

Automatically exported from code.google.com/p/gwt-google-apis
0 stars 0 forks source link

Visualization Options which are Object do not seem to work #420

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release:
GWT 2.04, Chart API: 1.1

Detailed description:
  When configuring a chart using ColumnChart.Options for example, it seems like any configuration option which is an object does not work.  The chart displays ok with no error messages, but the option is ignored.

  options.set("backgroundColor", "pink"); // <--- This works

  Properties p = Properties.create();
  p.set("minValue", 0.);
  options.set("vAxis", p);               // <-- This does not work.

  -------------------------

  Neither does the following code work for a PieChart.  Every option works
    except for the titleTextStyle.

   private native PieChart.Options getPieChartOptions()
        /*-{ return {width:400, height:240, is3D:false,
           backgroundColor:'grey', title:'My Daily Activities',
         titleTextStyle:{color:'red', fontSize:18} }  }-*/;

   This options work fine if you use just JavaScript in a non-GWT app.

Workaround if you have one:
  I have not been able to find a workaround.

Links to the relevant GWT Developer Forum posts:

Original issue reported on code.google.com by dada...@gmail.com on 23 Sep 2010 at 1:13

GoogleCodeExporter commented 9 years ago
Are you loading with the "corechart" or PieChart.PACKAGE string when loading 
the API?

http://code.google.com/p/gwt-google-apis/wiki/VisualizationFAQ#How_do_I_use_the_
updated_Chart_look_and_feel?

Original comment by zundel@google.com on 23 Sep 2010 at 2:01

GoogleCodeExporter commented 9 years ago
Doh!

I had PieChart.PACKAGE.

Very sorry.  It seems to work fine once I changed PieChart.Package to 
"corechart".

Original comment by dada...@gmail.com on 23 Sep 2010 at 2:17

GoogleCodeExporter commented 9 years ago

Original comment by zundel@google.com on 23 Sep 2010 at 2:48