The "chartType" property takes a string referencing the 
google.visualization object property for the chart you want to draw.  For 
example, if you want to draw a Line Chart, the normal Line Chart object is:

google.visualization.LineChart

so when using a ChartWrapper, you would set the "chartType" property to 
"LineChart".  This works for any chart that is a part of the 
google.visualization object (see the gallery 
<https://developers.google.com/chart/interactive/docs/gallery> for a 
complete list).  You can get the object name from the chart documentation, 
though in most cases it is simply the name of the chart, CamelCased (that 
is, capitalize the first letter of each word), with spaces removed, eg:

Geo Chart => "GeoChart"
Bubble Chart = "BubbleChart"
Stepped Area Chart => "SteppedAreaChart"

The one major exception to that rule is the Donut Chart, which is actually 
constructed using a Pie Chart, and thus you would use "PieChart" to build 
one.  If you are using 3rd party visualizations, the "chartType" parameter 
takes the fully qualified object reference as a string.  As an example, if 
I have a custom chart in the object:

library.charts.myChart

then the "chartType" parameter would be "library.charts.myChart".

On Monday, August 4, 2014 12:03:34 PM UTC-4, codejak wrote:
>
> Hi!
>
> I can't find a document that defines the full set of chart types and the 
> exact name to be used for the "chartType" wrapper property. Is there such a 
> list or some other rule of "finding out"?
>
> Can all chart types actually be used in a ChartWrapper? I have not been 
> able to make it work for a calendar for example.
>
> TIA for any pointers!
>
> Matt
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to