Stay organized with collections
Save and categorize content based on your preferences.
Sets the chartType of this chart.
Returns this chart.
Usage
Returns
Chart.setChartType(chartType)
ui.Chart
Argument
Type
Details
this: ui.chart
ui.Chart
The ui.Chart instance.
chartType
String
The chart type; e.g 'ScatterChart', 'LineChart', and 'ColumnChart'. For the complete list of charts, see: https://developers.google.com/chart/interactive/docs/gallery
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-06 UTC."],[[["`setChartType` defines the visual representation of data in a ui.Chart, such as 'ScatterChart', 'LineChart', or 'ColumnChart'."],["This function is called on a ui.Chart instance and takes a string argument representing the desired chart type."],["Calling `setChartType` returns the modified ui.Chart, enabling method chaining for further customization."],["A comprehensive list of supported chart types is available in the Google Charts documentation (linked in the details)."],["The provided examples demonstrate how to apply different chart types to a data table using `setChartType`."]]],[]]