با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
ویرایشگر کد جاوا اسکریپت Earth Engine به طور یکپارچه با نمودارهای Google برای تجسم داده های جدولی راحت از طریق توابع ui.Chart یکپارچه می شود. نمودارها را می توان به صورت تعاملی در کنسول Code Editor، ویجت های ui.Panel و در برگه های مرورگر مستقل نمایش داد.
نمودارهای DataTable
Earth Engine از Google Visualization API برای پشتیبانی از نمودار استفاده می کند. API یک DataTable می پذیرد که یک جدول دو بعدی است که در آن ردیف ها مشاهدات و ستون ها ویژگی های مشاهده هستند. همه نمودارها در Earth Engine از یک DataTable مشتق شده اند. ویجت ui.Chart به شما امکان می دهد تا یک DataTable مستقیماً تهیه کنید. این بیشترین فرصت را برای سفارشیسازی نمودار فراهم میکند، اما ممکن است نسبت به روشهایی برای ترسیم اشیاء خاص Earth Engine راحتتر باشد (بخش زیر را ببینید). درباره ایجاد نمودار از DataTable بیشتر بیاموزید:
ویجت ui.Chart روشهای کمکی برای ساخت DataTable و رندر نمودارها از Image ، ImageCollectionFeature ، FeatureCollection ، Array و List ارائه میکند. هر تابع یک نوع داده خاص را میپذیرد و شامل روشهایی برای کاهش دادهها به قالب جدولی در ترتیبات مختلفی است که تخصیص دادهها را به سریها و محورهای نمودار دیکته میکند.
برای یادگیری نحوه ایجاد نمودار برای هر نوع داده، از پیوندهای زیر دیدن کنید:
انواع نمودارها را می توان تولید کرد. به عنوان مثال: پراکندگی، خط، نوار، پای، و هیستوگرام. به طور خاص، هر نوع نموداری که در بسته نمودار اصلی Google Charts موجود است، قابل تولید است. برای تنظیم نوع نمودار از متد ui.Chart.setChartType() استفاده کنید. هر صفحه پیوند داده شده در بخش نمودارهای شیء موتور زمین و نمودارهای DataTable شامل نمونه هایی برای تولید چندین نوع نمودار است.
از رشته های زیر به عنوان ورودی متد ui.Chart.setChartType() استفاده کنید:
در یک برگه مرورگر جداگانه؛ روی نماد بازشو ( open_in_new ) در گوشه سمت راست بالای یک ویجت ui.Chart نمایش داده شده کلیک کنید. صفحه جدید یک نمایش تمام پنجره و گزینه هایی برای دانلود نمودار به صورت گرافیکی (PNG یا SVG) یا یک فایل CSV از داده های اساسی ارائه می دهد.
تعامل
نمودارها به طور پیش فرض تعاملی هستند. ماوس را روی نقاط، خطوط، میله ها و غیره نگه دارید تا مقادیر x، y و سری مربوطه را ببینید. با فعال کردن عملکرد "کاوشگر" نمودار، بزرگنمایی محور و حرکت به صورت اختیاری مجاز است.
یک ظاهر طراحی شده
نمودارهای گوگل از طریق ویژگی های استایل بسیار قابل تنظیم هستند. از متد ui.Chart.setOptions() برای تنظیم ویژگی های سبک نمودار استفاده کنید. برای جزئیات کامل به راهنمای طراحی نمودار مراجعه کنید.
محدودیت ها
توابع ui.Chart فقط 5000 ویژگی را ارائه می دهند. اگر FeatureCollection ، ImageCollection ، Array یا List شما دارای عناصر بیشتری است، روش هایی را در نظر بگیرید که ممکن است داده ها را محدود کنید. اگر سریهای زمانی طولانی با نرخ آهنگ بالا دارید، سعی کنید از دوره زمانی کوتاهتر، نمونهبرداری موقت یا تولید کامپوزیتهای زمانی استفاده کنید. اگر مشکل فضایی است، از یک زیر مجموعه تصادفی استفاده کنید. اگر با پیکسل ها در یک لیست یا آرایه کار می کنید، سعی کنید از مقیاس کمی بزرگتر یا منطقه کوچکتر استفاده کنید.
محاسبات طولانی مدت ممکن است به دلیل محدودیت های پاسخ تعاملی ویرایشگر کد در ایجاد نمودار شکست بخورند. اگر زمان درخواست نمودار شما تمام شد، سعی کنید مراحل میانی تجزیه و تحلیل خود را صادر کنید و نمودار را از دارایی های صادر شده بازسازی کنید.
تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThe Earth Engine Code Editor integrates with Google Charts for data visualization using \u003ccode\u003eui.Chart\u003c/code\u003e functions, which can be displayed in the console, panels, or separate browser tabs.\u003c/p\u003e\n"],["\u003cp\u003eCharts can be created from various Earth Engine objects such as \u003ccode\u003eImage\u003c/code\u003e, \u003ccode\u003eImageCollection\u003c/code\u003e, \u003ccode\u003eFeature\u003c/code\u003e, \u003ccode\u003eFeatureCollection\u003c/code\u003e, \u003ccode\u003eArray\u003c/code\u003e, and \u003ccode\u003eList\u003c/code\u003e as well as directly from \u003ccode\u003eDataTable\u003c/code\u003e objects.\u003c/p\u003e\n"],["\u003cp\u003eNumerous chart types, including scatter, line, bar, pie, and histogram are available, with customization options for styling, interactivity, and downloading as images or CSV files.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eui.Chart\u003c/code\u003e functions have limitations, rendering a maximum of 5,000 features and potentially timing out for long-running computations which can be mitigated through data reduction or exporting intermediate steps.\u003c/p\u003e\n"]]],[],null,["# Chart Overview\n\nThe Earth Engine JavaScript [Code Editor](/earth-engine/guides/playground)\nseamlessly integrates with [Google Charts](/chart/interactive/docs/gallery)\nfor convenient tabular data visualization via `ui.Chart` functions. Charts can\nbe displayed interactively in the Code Editor console, `ui.Panel`\nwidgets, and in stand-alone browser tabs.\n| **Caution:** the `ui.Chart` widget is available for the JavaScript Code Editor API only.\n\n`DataTable` charts\n------------------\n\nEarth Engine uses the [Google Visualization API](/chart/interactive/docs/reference)\nto support charting. The API accepts a `DataTable`, which is a 2-D\ntable where rows are observations and columns are observation attributes.\nAll charts in Earth Engine are derived from a `DataTable`; the `ui.Chart` widget\nallows you to supply a `DataTable` directly. It affords the greatest opportunity\nfor chart customization, but may be less convenient than methods for charting\nspecific Earth Engine objects (see the following section). Learn more about\ncreating charts from a `DataTable`:\n\n- [**`DataTable` charting**](/earth-engine/guides/charts_datatable)\n\nEarth Engine object charts\n--------------------------\n\nThe `ui.Chart` widget provides helper methods to construct a `DataTable` and\nrender charts from `Image`, `ImageCollection` `Feature`, `FeatureCollection`,\n`Array`, and `List` objects. Each function accepts a specific data type and\nincludes methods for reducing the data to tabular format in a variety of\narrangements that dictate data assignment to chart series and axes.\n\nVisit the following links to learn how to generate a chart for each data type:\n\n- [**`Feature` charting**](/earth-engine/guides/charts_feature)\n- [**`FeatureCollection` charting**](/earth-engine/guides/charts_feature)\n- [**`Image` charting**](/earth-engine/guides/charts_image)\n- [**`ImageCollection` charting**](/earth-engine/guides/charts_image_collection)\n- [**`Array` charting**](/earth-engine/guides/charts_array)\n- [**`List` charting**](/earth-engine/guides/charts_array)\n\nChart types\n-----------\n\nA variety of chart types can be produced; for example: scatter, line, bar, pie,\nand histogram. Specifically, any chart type that is available in the Google\nCharts [corechart](/chart/interactive/docs/basic_load_libs#basic-library-loading)\npackage can be generated. Use the `ui.Chart.setChartType()`\nmethod to set chart type. Each page linked to in the\n[Earth Engine object charts](#earth_engine_object_charts) and\n[`DataTable` charts](#datatable_charts) sections include examples for generating\nseveral chart types.\n\nUse the following strings as input to the `ui.Chart.setChartType()` method: \n\n 'ScatterChart'\n 'LineChart'\n 'ColumnChart'\n 'BarChart'\n 'PieChart'\n 'AreaChart'\n\nHere is an example: \n\n var data = ee.List([0, 1, 2, 3, 4, 5]);\n var chart = ui.Chart.array.values(data, 0, data)\n .setChartType('ColumnChart');\n print(chart);\n\nDisplay and download\n--------------------\n\n`ui.Chart` widgets can be displayed three ways:\n\n- In the [Code Editor console](/earth-engine/guides/playground#console-tab)\n\n var data = ee.List([0, 1, 2, 3, 4, 5]);\n var chart = ui.Chart.array.values(data, 0, data);\n print(chart);\n\n- In a [`ui.Panel`](/earth-engine/guides/ui_panels#panels) widget\n\n var data = ee.List([0, 1, 2, 3, 4, 5]);\n var chart = ui.Chart.array.values(data, 0, data);\n var chartPanel = ui.Panel(chart);\n Map.add(chartPanel);\n\n- In a separate browser tab; click the pop-out icon (open_in_new) in the upper-right corner of a displayed `ui.Chart` widget. The new page provides a full-window display and options to **download the chart** as a graphic (PNG or SVG) or a CSV file of the underlying data.\n\nInteractivity\n-------------\n\nCharts are interactive by default. Hover over points, lines, bars, etc. to see\nrespective x, y, and series values. Axis zooming and panning are optionally\npermitted by [activating a chart's \"explorer\" functionality](/earth-engine/guides/charts_style#zoom_and_pan_chart_axes).\n\nStyling\n-------\n\nGoogle Charts are highly customizable via styling properties. Use the\n`ui.Chart.setOptions()` method to set chart style properties. See the\n[Chart Styling](/earth-engine/guides/charts_style) guide for full details.\n\nLimitations\n-----------\n\n`ui.Chart` functions will only render 5,000 features. If your\n`FeatureCollection`, `ImageCollection`, `Array` or `List` has more elements,\nconsider ways you might limit the data. If you have a long time series with a\nhigh cadence rate, try using a shorter time period, temporal sampling, or\ngenerate temporal composites. If the issue is spatial, try using a random\nsubset. If you are working with pixels in a list or array, try using a slightly\nlarger scale or smaller region.\n\nLong-running computations can fail to generate a chart because of interactive\nresponse limits of the Code Editor. If your chart request times out, try\n[exporting](/earth-engine/guides/exporting) intermediate steps of your analysis\nand regenerating the chart from the exported assets."]]