Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ui.Chart.getChartType
Stay organized with collections
Save and categorize content based on your preferences.
Returns this chart's type; e.g 'ScatterChart', 'LineChart', and 'ColumnChart'. For the complete list of charts, see: https://developers.google.com/chart/interactive/docs/gallery
Usage | Returns | Chart.getChartType() | String |
Argument | Type | Details | this: ui.chart | ui.Chart | The ui.Chart instance. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["\u003cp\u003eThe \u003ccode\u003egetChartType()\u003c/code\u003e method reveals the type of a given chart (e.g., 'ScatterChart', 'LineChart').\u003c/p\u003e\n"],["\u003cp\u003eRefer to the provided link for a comprehensive list of supported chart types: \u003ca href=\"https://developers.google.com/chart/interactive/docs/gallery\"\u003ehttps://developers.google.com/chart/interactive/docs/gallery\u003c/a\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egetChartType()\u003c/code\u003e is a method within the \u003ccode\u003eui.Chart\u003c/code\u003e class and returns a string representing the chart type.\u003c/p\u003e\n"]]],[],null,["# ui.Chart.getChartType\n\n\u003cbr /\u003e\n\nReturns this chart's type; e.g 'ScatterChart', 'LineChart', and 'ColumnChart'. For the complete list of charts, see: https://developers.google.com/chart/interactive/docs/gallery\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------|---------|\n| Chart.getChartType`()` | String |\n\n| Argument | Type | Details |\n|------------------|----------|------------------------|\n| this: `ui.chart` | ui.Chart | The ui.Chart instance. |"]]