বৈশিষ্ট্য এবং বৈশিষ্ট্য সংগ্রহ চার্ট

ui.Chart.feature মডিউলটিতে Feature এবং FeatureCollection অবজেক্ট থেকে চার্ট রেন্ডার করার জন্য ফাংশনের একটি সেট রয়েছে। ফাংশনের পছন্দ চার্টে ডেটার বিন্যাস নির্ধারণ করে, অর্থাৎ, x- এবং y-অক্ষের মানগুলিকে কী সংজ্ঞায়িত করে এবং কী সিরিজকে সংজ্ঞায়িত করে। আপনার উদ্দেশ্যের জন্য সর্বোত্তম ফাংশন এবং চার্টের ধরন নির্ধারণ করতে নিম্নলিখিত ফাংশন বর্ণনা এবং উদাহরণগুলি ব্যবহার করুন।

চার্ট ফাংশন

প্রতিটি ফাংশন কীভাবে একটি চার্টে বৈশিষ্ট্য এবং তাদের বৈশিষ্ট্যগুলিকে সাজায় তা বোঝার জন্য একটি ভিজ্যুয়াল গাইড হিসাবে নিম্নলিখিত প্লট ডায়াগ্রামগুলি ব্যবহার করুন; অর্থাৎ, কোন উপাদান x মান, y মান এবং সিরিজকে সংজ্ঞায়িত করে।

ui.Chart.feature.byFeature

বৈশিষ্ট্যগুলি একটি নির্বাচিত সম্পত্তির মান দ্বারা x-অক্ষ বরাবর প্লট করা হয়। সিরিজগুলি সম্পত্তির নামের তালিকা দ্বারা সংজ্ঞায়িত করা হয় যার মানগুলি y-অক্ষ বরাবর প্লট করা হয়।

ui.Chart.feature.byProperty

বৈশিষ্ট্য বৈশিষ্ট্য নাম দ্বারা x-অক্ষ বরাবর প্লট করা হয়; প্রদত্ত বৈশিষ্ট্যের মানগুলি y-অক্ষ বরাবর প্লট করা হয়। সিরিজ হল একটি নির্বাচিত সম্পত্তির মান দ্বারা লেবেল করা বৈশিষ্ট্য।

ui.Chart.feature.groups

বৈশিষ্ট্যগুলি একটি নির্বাচিত সম্পত্তির মান দ্বারা x-অক্ষ বরাবর প্লট করা হয়। সিরিজ একটি প্রদত্ত সম্পত্তি অনন্য মান দ্বারা সংজ্ঞায়িত করা হয়. Y-অক্ষ অবস্থান একটি প্রদত্ত সম্পত্তির মান দ্বারা সংজ্ঞায়িত করা হয়।

ui.Chart.feature.histogram

একটি নির্বাচিত সম্পত্তির মানগুলির জন্য ফ্রিকোয়েন্সি হিস্টোগ্রাম।

  • X-অক্ষ : একটি নির্বাচিত সম্পত্তির মানগুলির জন্য হিস্টোগ্রাম বালতি
  • Y-অক্ষ : প্রতিটি হিস্টোগ্রাম বালতির জন্য যোগ্য বৈশিষ্ট্যের ফ্রিকোয়েন্সি

উদাহরণ ডেটা

নিম্নলিখিত উদাহরণগুলি জলবায়ু স্বাভাবিকতা বর্ণনা করে এমন বৈশিষ্ট্য সহ তিনটি ইকোরিজিয়ন বৈশিষ্ট্যের সমন্বয়ে গঠিত একটি FeatureCollection উপর নির্ভর করে।

উদাহরণ তথ্য কিভাবে তৈরি করা হয়েছে দেখুন

কোড এডিটর (জাভাস্ক্রিপ্ট)

// Define three representative ecoregions in the USA.
var desert = ee.Feature(
    ee.Geometry.Rectangle(-109.21, 31.42, -108.3, 32.03),
    {label: 'Desert', value: 0});

var forest = ee.Feature(
    ee.Geometry.Rectangle(-122.73, 43.45, -122.28, 43.91),
    {label: 'Forest', value: 1});

var grassland = ee.Feature(
    ee.Geometry.Rectangle(-101.81, 41.7, -100.53, 42.51),
    {label: 'Grassland', value: 2});

// Combine features into a feature collection.
var ecoregions = ee.FeatureCollection([desert, forest, grassland]);

// Load PRISM climate normals image collection; convert images to bands.
var normClim = ee.ImageCollection('OREGONSTATE/PRISM/Norm81m').toBands();

// Summarize climate normals for each ecoregion feature as a set or properties.
ecoregions = normClim.reduceRegions(
    {collection: ecoregions, reducer: ee.Reducer.mean(), scale: 5e4});

// Add a property for whether January temperature is warm or not.
ecoregions = ecoregions.map(function(ecoregion) {
  return ecoregion.set('warm', ee.Number(ecoregion.get('01_tmean')).gt(0));
});

ui.Chart.feature.byFeature

কলাম চার্ট

বৈশিষ্ট্যগুলি x-অক্ষ বরাবর প্লট করা হয়, একটি নির্বাচিত সম্পত্তির মান দ্বারা লেবেল করা হয়। সিরিজগুলিকে সম্পত্তির নামের তালিকা দ্বারা সংজ্ঞায়িত সংলগ্ন কলাম দ্বারা উপস্থাপন করা হয় যার মানগুলি y-অক্ষ বরাবর প্লট করা হয়।

কোড এডিটর (জাভাস্ক্রিপ্ট)

// Import the example feature collection.
var ecoregions = ee.FeatureCollection('projects/google/charts_feature_example');

// Define the chart and print it to the console.
var chart =
    ui.Chart.feature
        .byFeature({
          features: ecoregions.select('[0-9][0-9]_tmean|label'),
          xProperty: 'label',
        })
        .setSeriesNames([
          'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct',
          'Nov', 'Dec'
        ])
        .setChartType('ColumnChart')
        .setOptions({
          title: 'Average Monthly Temperature by Ecoregion',
          hAxis:
              {title: 'Ecoregion', titleTextStyle: {italic: false, bold: true}},
          vAxis: {
            title: 'Temperature (°C)',
            titleTextStyle: {italic: false, bold: true}
          },
          colors: [
            '604791', '1d6b99', '39a8a7', '0f8755', '76b349', 'f0af07',
            'e37d05', 'cf513e', '96356f', '724173', '9c4f97', '696969'
          ]
        });
print(chart);

বার চার্ট

বৈশিষ্ট্যগুলি y-অক্ষ বরাবর প্লট করা হয়, একটি নির্বাচিত সম্পত্তির মান দ্বারা লেবেল করা হয়। সিরিজকে প্রোপার্টি নামের তালিকা দ্বারা সংজ্ঞায়িত সংলগ্ন বার দ্বারা প্রতিনিধিত্ব করা হয় যার মান x-অক্ষ বরাবর প্লট করা হয়।

কোড এডিটর (জাভাস্ক্রিপ্ট)

// Import the example feature collection.
var ecoregions = ee.FeatureCollection('projects/google/charts_feature_example');

// Define the chart and print it to the console.
var chart =
    ui.Chart.feature
        .byFeature({
          features: ecoregions.select('[0-9][0-9]_tmean|label'),
          xProperty: 'label',
        })
        .setSeriesNames([
          'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct',
          'Nov', 'Dec'
        ])
        .setChartType('BarChart')
        .setOptions({
          title: 'Average Monthly Temperature by Ecoregion',
          hAxis: {
            title: 'Temperature (°C)',
            titleTextStyle: {italic: false, bold: true}
          },
          vAxis:
              {title: 'Ecoregion', titleTextStyle: {italic: false, bold: true}},
          colors: [
            '604791', '1d6b99', '39a8a7', '0f8755', '76b349', 'f0af07',
            'e37d05', 'cf513e', '96356f', '724173', '9c4f97', '696969'
          ]
        });
print(chart);

স্তুপীকৃত কলাম চার্ট

পরম

বৈশিষ্ট্যগুলি x-অক্ষ বরাবর প্লট করা হয়, একটি নির্বাচিত সম্পত্তির মান দ্বারা লেবেল করা হয়। সিরিজগুলিকে প্রপার্টি নামের তালিকা দ্বারা সংজ্ঞায়িত স্ট্যাক করা কলাম দ্বারা উপস্থাপন করা হয় যার মানগুলি y-অক্ষ বরাবর ক্রমবর্ধমান সিরিজের যোগফল হিসাবে প্লট করা হয়।

কোড এডিটর (জাভাস্ক্রিপ্ট)

// Import the example feature collection.
var ecoregions = ee.FeatureCollection('projects/google/charts_feature_example');

// Define the chart and print it to the console.
var chart =
    ui.Chart.feature
        .byFeature({
          features: ecoregions.select('[0-9][0-9]_ppt|label'),
          xProperty: 'label'
        })
        .setSeriesNames([
          'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct',
          'Nov', 'Dec'
        ])
        .setChartType('ColumnChart')
        .setOptions({
          title: 'Average Monthly Precipitation by Ecoregion',
          hAxis:
              {title: 'Ecoregion', titleTextStyle: {italic: false, bold: true}},
          vAxis: {
            title: 'Precipitation (mm)',
            titleTextStyle: {italic: false, bold: true}
          },
          colors: [
            '604791', '1d6b99', '39a8a7', '0f8755', '76b349', 'f0af07',
            'e37d05', 'cf513e', '96356f', '724173', '9c4f97', '696969'
          ],
          isStacked: 'absolute'
        });
print(chart);

আপেক্ষিক

বৈশিষ্ট্যগুলি x-অক্ষ বরাবর প্লট করা হয়, একটি নির্বাচিত সম্পত্তির মান দ্বারা লেবেল করা হয়। সিরিজগুলিকে প্রোপার্টি নামের একটি তালিকা দ্বারা সংজ্ঞায়িত স্ট্যাক করা কলাম দ্বারা উপস্থাপন করা হয় যার মানগুলি y-অক্ষ বরাবর প্লট করা হয় সমষ্টি সিরিজের শতাংশ হিসাবে।

কোড এডিটর (জাভাস্ক্রিপ্ট)

// Import the example feature collection.
var ecoregions = ee.FeatureCollection('projects/google/charts_feature_example');

// Define the chart and print it to the console.
var chart =
    ui.Chart.feature
        .byFeature({
          features: ecoregions.select('[0-9][0-9]_ppt|label'),
          xProperty: 'label'
        })
        .setSeriesNames([
          'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct',
          'Nov', 'Dec'
        ])
        .setChartType('ColumnChart')
        .setOptions({
          title: 'Average Monthly Precipitation by Ecoregion',
          hAxis:
              {title: 'Ecoregion', titleTextStyle: {italic: false, bold: true}},
          vAxis: {
            title: 'Precipitation (mm)',
            titleTextStyle: {italic: false, bold: true}
          },
          colors: [
            '604791', '1d6b99', '39a8a7', '0f8755', '76b349', 'f0af07',
            'e37d05', 'cf513e', '96356f', '724173', '9c4f97', '696969'
          ],
          isStacked: 'percent'
        });
print(chart);

স্ক্যাটার চার্ট

বৈশিষ্ট্যগুলি x-অক্ষ বরাবর প্লট করা হয়, একটি নির্বাচিত সম্পত্তির মান দ্বারা লেবেল করা হয়। সিরিজকে বিন্দু দ্বারা চিহ্নিত করা হয় সম্পত্তির নামের তালিকা দ্বারা যার মানগুলি y-অক্ষ বরাবর প্লট করা হয়।

কোড এডিটর (জাভাস্ক্রিপ্ট)

// Import the example feature collection.
var ecoregions = ee.FeatureCollection('projects/google/charts_feature_example');

// Define the chart and print it to the console.
var chart =
    ui.Chart.feature
        .byFeature({
          features: ecoregions,
          xProperty: 'label',
          yProperties: ['01_tmean', '07_tmean']
        })
        .setSeriesNames(['Jan', 'Jul'])
        .setChartType('ScatterChart')
        .setOptions({
          title: 'Average Monthly Temperature by Ecoregion',
          hAxis:
              {title: 'Ecoregion', titleTextStyle: {italic: false, bold: true}},
          vAxis: {
            title: 'Temperature (°C)',
            titleTextStyle: {italic: false, bold: true}
          },
          pointSize: 10,
          colors: ['1d6b99', 'cf513e'],
        });
print(chart);

কম্বো চার্ট

বৈশিষ্ট্যগুলি x-অক্ষ বরাবর প্লট করা হয়, একটি নির্বাচিত সম্পত্তির মান দ্বারা লেবেল করা হয়। সিরিজগুলিকে বিন্দু এবং কলাম দ্বারা চিহ্নিত করা হয় সম্পত্তির নামের তালিকা দ্বারা যার মানগুলি y-অক্ষ বরাবর প্লট করা হয়। এই চার্টটি দুটি অক্ষ এবং সিরিজ-নির্দিষ্ট স্টাইলিং ব্যবহার করে অর্জন করা হয়।

কোড এডিটর (জাভাস্ক্রিপ্ট)

// Import the example feature collection.
var ecoregions = ee.FeatureCollection('projects/google/charts_feature_example');

// Define the chart and print it to the console.
var chart =
    ui.Chart.feature
        .byFeature({
          features: ecoregions,
          xProperty: 'label',
          yProperties: ['06_ppt', '06_tmean']
        })
        .setSeriesNames(['Precipitation', 'Temperature'])
        .setChartType('ColumnChart')
        .setOptions({
          title: 'Average June Temperature and Precipitation by Ecoregion',
          series: {
            0: {targetAxisIndex: 1, type: 'bar', color: '1d6b99'},
            1: {
              targetAxisIndex: 0,
              type: 'line',
              lineWidth: 0,
              pointSize: 10,
              color: 'e37d05'
            }
          },
          hAxis:
              {title: 'Ecoregion', titleTextStyle: {italic: false, bold: true}},
          vAxes: {
            0: {
              title: 'Temperature (°C)',
              baseline: 0,
              titleTextStyle: {italic: false, bold: true, color: 'e37d05'}
            },
            1: {
              title: 'Precipitation (mm)',
              titleTextStyle: {italic: false, bold: true, color: '1d6b99'}
            },
          },
          bar: {groupWidth: '40%'},
        });
print(chart);

ui.Chart.feature.byProperty

উদাহরণ সেটআপ

ui.Chart.feature.byProperty ফাংশন একটি অভিধান গ্রহণ করে যা আপনাকে x-অক্ষ বরাবর সম্পত্তির নামের লেবেল এবং ক্রম নিয়ন্ত্রণ করতে দেয় এবং তাদের সংখ্যাসূচক মান নির্ধারণ করে। নিম্নলিখিত কার্টেসিয়ান গ্রিড চার্টগুলি মাসিক লেবেল সেট করতে এবং গড় মাসিক বৃষ্টিপাতের জন্য কালানুক্রমিক ক্রমে মাসের নাম বাছাই করতে এই বিকল্পটি ব্যবহার করে।

কলাম চার্ট

বৈশিষ্ট্য বৈশিষ্ট্য x-অক্ষ বরাবর প্লট করা হয়, লেবেলযুক্ত এবং একটি অভিধান ইনপুট দ্বারা সাজানো হয়; প্রদত্ত বৈশিষ্ট্যের মানগুলি y-অক্ষ বরাবর প্লট করা হয়েছে। সিরিজ হল বৈশিষ্ট্য, কলাম দ্বারা উপস্থাপিত, একটি নির্বাচিত সম্পত্তির মান দ্বারা লেবেল করা হয়। বার চার্টে রূপান্তর করতে, .setChartType('BarChart') ব্যবহার করুন।

কোড এডিটর (জাভাস্ক্রিপ্ট)

// Import the example feature collection.
var ecoregions = ee.FeatureCollection('projects/google/charts_feature_example');

// Define a dictionary that associates property names with values and labels.
var precipInfo = {
  '01_ppt': {v: 1, f: 'Jan'},
  '02_ppt': {v: 2, f: 'Feb'},
  '03_ppt': {v: 3, f: 'Mar'},
  '04_ppt': {v: 4, f: 'Apr'},
  '05_ppt': {v: 5, f: 'May'},
  '06_ppt': {v: 6, f: 'Jun'},
  '07_ppt': {v: 7, f: 'Jul'},
  '08_ppt': {v: 8, f: 'Aug'},
  '09_ppt': {v: 9, f: 'Sep'},
  '10_ppt': {v: 10, f: 'Oct'},
  '11_ppt': {v: 11, f: 'Nov'},
  '12_ppt': {v: 12, f: 'Dec'}
};

// Organize property information into objects for defining x properties and
// their tick labels.
var xPropValDict = {};  // Dictionary to codify x-axis property names as values.
var xPropLabels = [];   // Holds dictionaries that label codified x-axis values.
for (var key in precipInfo) {
  xPropValDict[key] = precipInfo[key].v;
  xPropLabels.push(precipInfo[key]);
}

// Define the chart and print it to the console.
var chart = ui.Chart.feature
                .byProperty({
                  features: ecoregions,
                  xProperties: xPropValDict,
                  seriesProperty: 'label'
                })
                .setChartType('ColumnChart')
                .setOptions({
                  title: 'Average Ecoregion Precipitation by Month',
                  hAxis: {
                    title: 'Month',
                    titleTextStyle: {italic: false, bold: true},
                    ticks: xPropLabels
                  },
                  vAxis: {
                    title: 'Precipitation (mm)',
                    titleTextStyle: {italic: false, bold: true}
                  },
                  colors: ['f0af07', '0f8755', '76b349'],
                });
print(chart);

লাইন চার্ট

বৈশিষ্ট্য বৈশিষ্ট্য x-অক্ষ বরাবর প্লট করা হয়, লেবেলযুক্ত এবং একটি অভিধান ইনপুট দ্বারা সাজানো হয়; প্রদত্ত বৈশিষ্ট্যের মানগুলি y-অক্ষ বরাবর প্লট করা হয়েছে। সিরিজ হল বৈশিষ্ট্য, লাইন দ্বারা উপস্থাপিত, একটি নির্বাচিত সম্পত্তির মান দ্বারা লেবেল করা হয়।

কোড এডিটর (জাভাস্ক্রিপ্ট)

// Import the example feature collection.
var ecoregions = ee.FeatureCollection('projects/google/charts_feature_example');

// Define a dictionary that associates property names with values and labels.
var precipInfo = {
  '01_ppt': {v: 1, f: 'Jan'},
  '02_ppt': {v: 2, f: 'Feb'},
  '03_ppt': {v: 3, f: 'Mar'},
  '04_ppt': {v: 4, f: 'Apr'},
  '05_ppt': {v: 5, f: 'May'},
  '06_ppt': {v: 6, f: 'Jun'},
  '07_ppt': {v: 7, f: 'Jul'},
  '08_ppt': {v: 8, f: 'Aug'},
  '09_ppt': {v: 9, f: 'Sep'},
  '10_ppt': {v: 10, f: 'Oct'},
  '11_ppt': {v: 11, f: 'Nov'},
  '12_ppt': {v: 12, f: 'Dec'}
};

// Organize property information into objects for defining x properties and
// their tick labels.
var xPropValDict = {};  // Dictionary to codify x-axis property names as values.
var xPropLabels = [];   // Holds dictionaries that label codified x-axis values.
for (var key in precipInfo) {
  xPropValDict[key] = precipInfo[key].v;
  xPropLabels.push(precipInfo[key]);
}

// Define the chart and print it to the console.
var chart = ui.Chart.feature
                .byProperty({
                  features: ecoregions,
                  xProperties: xPropValDict,
                  seriesProperty: 'label'
                })
                .setChartType('ScatterChart')
                .setOptions({
                  title: 'Average Ecoregion Precipitation by Month',
                  hAxis: {
                    title: 'Month',
                    titleTextStyle: {italic: false, bold: true},
                    ticks: xPropLabels
                  },
                  vAxis: {
                    title: 'Precipitation (mm)',
                    titleTextStyle: {italic: false, bold: true}
                  },
                  colors: ['f0af07', '0f8755', '76b349'],
                  lineSize: 5,
                  pointSize: 0
                });
print(chart);

এলাকার চার্ট

বৈশিষ্ট্য বৈশিষ্ট্য x-অক্ষ বরাবর প্লট করা হয়, লেবেলযুক্ত এবং একটি অভিধান ইনপুট দ্বারা সাজানো হয়; প্রদত্ত বৈশিষ্ট্যের মানগুলি y-অক্ষ বরাবর প্লট করা হয়েছে। সিরিজ হল বৈশিষ্ট্য, লাইন এবং ছায়াযুক্ত এলাকা দ্বারা উপস্থাপিত, একটি নির্বাচিত সম্পত্তির মান দ্বারা লেবেল করা হয়।

কোড এডিটর (জাভাস্ক্রিপ্ট)

// Import the example feature collection.
var ecoregions = ee.FeatureCollection('projects/google/charts_feature_example');

// Define a dictionary that associates property names with values and labels.
var precipInfo = {
  '01_ppt': {v: 1, f: 'Jan'},
  '02_ppt': {v: 2, f: 'Feb'},
  '03_ppt': {v: 3, f: 'Mar'},
  '04_ppt': {v: 4, f: 'Apr'},
  '05_ppt': {v: 5, f: 'May'},
  '06_ppt': {v: 6, f: 'Jun'},
  '07_ppt': {v: 7, f: 'Jul'},
  '08_ppt': {v: 8, f: 'Aug'},
  '09_ppt': {v: 9, f: 'Sep'},
  '10_ppt': {v: 10, f: 'Oct'},
  '11_ppt': {v: 11, f: 'Nov'},
  '12_ppt': {v: 12, f: 'Dec'}
};

// Organize property information into objects for defining x properties and
// their tick labels.
var xPropValDict = {};  // Dictionary to codify x-axis property names as values.
var xPropLabels = [];   // Holds dictionaries that label codified x-axis values.
for (var key in precipInfo) {
  xPropValDict[key] = precipInfo[key].v;
  xPropLabels.push(precipInfo[key]);
}

// Define the chart and print it to the console.
var chart = ui.Chart.feature
                .byProperty({
                  features: ecoregions,
                  xProperties: xPropValDict,
                  seriesProperty: 'label'
                })
                .setChartType('AreaChart')
                .setOptions({
                  title: 'Average Ecoregion Precipitation by Month',
                  hAxis: {
                    title: 'Month',
                    titleTextStyle: {italic: false, bold: true},
                    ticks: xPropLabels
                  },
                  vAxis: {
                    title: 'Precipitation (mm)',
                    titleTextStyle: {italic: false, bold: true}
                  },
                  colors: ['f0af07', '0f8755', '76b349'],
                  lineSize: 5,
                  pointSize: 0,
                  curveType: 'function'
                });
print(chart);

পাই চার্ট

পাই হল একটি বৈশিষ্ট্য, প্রতিটি স্লাইস হল একটি প্রপার্টি লেবেল যার মান পাই কম্পোজ করা বৈশিষ্ট্যের সমস্ত মানের যোগফলের শতাংশ হিসাবে নিক্ষেপ করা হয়।

কোড এডিটর (জাভাস্ক্রিপ্ট)

// Import the example feature collection.
var ecoregions = ee.FeatureCollection('projects/google/charts_feature_example');

// Subset the forest ecoregion feature and select the monthly precipitation
// properties, rename them as abbreviated months.
var thisForest = ecoregions.filter(ee.Filter.eq('label', 'Forest'))
                     .select(Object.keys(precipInfo), [
                       'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug',
                       'Sep', 'Oct', 'Nov', 'Dec'
                     ]);

// Define the chart and print it to the console.
var chart = ui.Chart.feature
                .byProperty({
                  features: thisForest,
                  xProperties: [
                    'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug',
                    'Sep', 'Oct', 'Nov', 'Dec'
                  ]
                })
                .setChartType('PieChart')
                .setOptions({
                  title: 'Average Monthly Precipitation for Forest Ecoregion',
                  colors: [
                    '604791', '1d6b99', '39a8a7', '0f8755', '76b349', 'f0af07',
                    'e37d05', 'cf513e', '96356f', '724173', '9c4f97', '696969'
                  ]
                });
print(chart);

ডোনাট চার্ট

pieHole চার্ট বিকল্প সেট করে একটি পাই চার্টকে ডোনাট চার্টে রূপান্তর করুন; 0.4 এবং 0.6 এর মধ্যে সংখ্যাগুলি বেশিরভাগ চার্টে সেরা দেখাবে৷

কোড এডিটর (জাভাস্ক্রিপ্ট)

// Import the example feature collection.
var ecoregions = ee.FeatureCollection('projects/google/charts_feature_example');

// Subset the forest ecoregion feature and select the monthly precipitation
// properties, rename them as abbreviated months.
var thisForest = ecoregions.filter(ee.Filter.eq('label', 'Forest'))
                     .select(Object.keys(precipInfo), [
                       'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug',
                       'Sep', 'Oct', 'Nov', 'Dec'
                     ]);

// Define the chart and print it to the console.
var chart = ui.Chart.feature
                .byProperty({
                  features: thisForest,
                  xProperties: [
                    'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug',
                    'Sep', 'Oct', 'Nov', 'Dec'
                  ]
                })
                .setChartType('PieChart')
                .setOptions({
                  title: 'Average Monthly Precipitation for Forest Ecoregion',
                  colors: [
                    '604791', '1d6b99', '39a8a7', '0f8755', '76b349', 'f0af07',
                    'e37d05', 'cf513e', '96356f', '724173', '9c4f97', '696969'
                  ],
                  pieHole: 0.4,
                });
print(chart);

ui.Chart.feature.groups

কলাম চার্ট

বৈশিষ্ট্যগুলি x-অক্ষ বরাবর প্লট করা হয়, একটি নির্বাচিত সম্পত্তির মান দ্বারা লেবেল করা হয়। একটি প্রদত্ত সম্পত্তির অনন্য মানের সেট দ্বারা সংজ্ঞায়িত কলাম দ্বারা সিরিজ প্রতিনিধিত্ব করা হয়। Y-অক্ষ অবস্থান একটি প্রদত্ত সম্পত্তির মান দ্বারা সংজ্ঞায়িত করা হয়। চার্টের ধরনটি 'ScatterChart' ( .setChartType('ScatterChart') ) হিসাবে সেট করে এই প্লটটিকে একটি স্ক্যাটার প্লটে পরিবর্তন করা যেতে পারে। বিকল্পভাবে, যদি সময় x-অক্ষ পরিবর্তনশীল হয়, আপনি একটি লাইন চার্ট ব্যবহার করতে পছন্দ করতে পারেন: .setChartType('LineChart')

কোড এডিটর (জাভাস্ক্রিপ্ট)

// Import the example feature collection.
var ecoregions = ee.FeatureCollection('projects/google/charts_feature_example');

// Define the chart and print it to the console.
var chart =
    ui.Chart.feature
        .groups({
          features: ecoregions,
          xProperty: 'label',
          yProperty: '01_tmean',
          seriesProperty: 'warm'
        })
        .setSeriesNames(['Warm', 'Cold'])
        .setChartType('ColumnChart')
        .setOptions({
          title: 'Average January Temperature by Ecoregion',
          hAxis:
              {title: 'Ecoregion', titleTextStyle: {italic: false, bold: true}},
          vAxis: {
            title: 'Jan temp (°C)',
            titleTextStyle: {italic: false, bold: true}
          },
          bar: {groupWidth: '80%'},
          colors: ['cf513e', '1d6b99'],
          isStacked: true
        });
print(chart);

ui.Chart.feature.histogram

x-অক্ষ একটি নির্বাচিত সম্পত্তির মানগুলির পরিসরের জন্য মান বিন দ্বারা সংজ্ঞায়িত করা হয়; y-অক্ষ হল প্রদত্ত বিনের উপাদানগুলির সংখ্যা।

কোড এডিটর (জাভাস্ক্রিপ্ট)

// Load PRISM climate normals image collection; convert images to bands.
var normClim = ee.ImageCollection('OREGONSTATE/PRISM/Norm81m').toBands();

// Make a point sample of climate variables for a region in western USA.
var region = ee.Geometry.Rectangle(-123.41, 40.43, -116.38, 45.14);
var climSamp = normClim.sample(region, 5000);

// Define the chart and print it to the console.
var chart =
    ui.Chart.feature
        .histogram({features: climSamp, property: '07_ppt', maxBuckets: 30})
        .setOptions({
          title: 'July Precipitation Distribution for NW USA',
          hAxis: {
            title: 'Precipitation (mm)',
            titleTextStyle: {italic: false, bold: true}
          },
          vAxis: {
            title: 'Pixel count',
            titleTextStyle: {italic: false, bold: true}
          },
          colors: ['1d6b99'],
          legend: {position: 'none'}
        });
print(chart);