# !pip install geemap import ee import geemap import geemap.chart as chart geemap.ee_initialize() source = ee.ImageCollection('OREGONSTATE/PRISM/Norm81m').toBands() region = ee.Geometry.Rectangle(-123.41, 40.43, -116.38, 45.14) my_sample = source.sample(region, 5000) property = '07_ppt' options = { "title": 'July Precipitation Distribution for NW USA', "xlabel": 'Precipitation (mm)', "ylabel": 'Pixel count', "colors": ['#1d6b99'], } chart.feature_histogram(my_sample, property, **options) chart.feature_histogram(my_sample, property, maxBuckets=30, **options) chart.feature_histogram(my_sample, property, minBucketWidth=0.5, **options) chart.feature_histogram(my_sample, property, minBucketWidth=3, maxBuckets=30, **options)