ui.Chart.getView
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Trả về đối tượng khởi tạo DataView của biểu đồ này, đóng vai trò là bộ lọc đối với dữ liệu cơ bản trong biểu đồ. Hãy xem: https://developers.google.com/chart/interactive/docs/reference#DataView
Cách sử dụng | Giá trị trả về |
---|
Chart.getView() | Đối tượng |
Đối số | Loại | Thông tin chi tiết |
---|
this: ui.chart | ui.Chart | Thực thể ui.Chart. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 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. |"]]