Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ui.Chart.getView
Stay organized with collections
Save and categorize content based on your preferences.
Returns this chart's DataView initializer object, which acts as a filter over the underlying data in the chart. See: https://developers.google.com/chart/interactive/docs/reference#DataView
Usage | Returns | Chart.getView() | Object |
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\u003eThis method returns a DataView initializer object, allowing you to filter the chart's underlying data.\u003c/p\u003e\n"],["\u003cp\u003eYou can access this functionality using \u003ccode\u003eChart.getView()\u003c/code\u003e which returns an object.\u003c/p\u003e\n"],["\u003cp\u003eThe method is called on a \u003ccode\u003eui.Chart\u003c/code\u003e instance and requires no arguments.\u003c/p\u003e\n"]]],["The `Chart.getView()` method returns a DataView initializer object, enabling filtering of the chart's underlying data. This method, part of a `ui.Chart` instance, is accessed using `Chart.getView()`, where \"Chart\" is an instance of `ui.chart`. The output of this method is an Object. It allows for creating a filter over the data. More details are in this link: https://developers.google.com/chart/interactive/docs/reference#DataView.\n"],null,["# ui.Chart.getView\n\n\u003cbr /\u003e\n\nReturns this chart's DataView initializer object, which acts as a filter over the underlying data in the chart. See: https://developers.google.com/chart/interactive/docs/reference#DataView\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------|---------|\n| Chart.getView`()` | Object |\n\n| Argument | Type | Details |\n|------------------|----------|------------------------|\n| this: `ui.chart` | ui.Chart | The ui.Chart instance. |"]]