{"id":14956559,"url":"https://github.com/mongodb/charts-demo","last_synced_at":"2025-11-11T21:17:45.609Z","repository":{"id":66021564,"uuid":"159728715","full_name":"mongodb/charts-demo","owner":"mongodb","description":"For the .local events in general, and for .local SF specifically","archived":false,"fork":false,"pushed_at":"2018-12-10T00:16:50.000Z","size":8,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-05T00:02:47.612Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mongodb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-29T21:19:44.000Z","updated_at":"2025-03-26T00:23:00.000Z","dependencies_parsed_at":"2023-03-10T23:29:39.865Z","dependency_job_id":null,"html_url":"https://github.com/mongodb/charts-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mongodb/charts-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb%2Fcharts-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb%2Fcharts-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb%2Fcharts-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb%2Fcharts-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mongodb","download_url":"https://codeload.github.com/mongodb/charts-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb%2Fcharts-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":283932693,"owners_count":26918769,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-11T02:00:06.610Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-24T13:13:08.448Z","updated_at":"2025-11-11T21:17:45.577Z","avatar_url":"https://github.com/mongodb.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# MongoDB Charts\n\n## Setup the Datasets\n\nDownload the [airbnb dataset](https://webassets.mongodb.com/_com_assets/cms/airbnb-sf-5uzx3cjqff.zip), unzip it, and import it into your MongoDB Atlas\ncluster. Have a look at the [command line tools](https://docs.atlas.mongodb.com/command-line-tools/)\nfor directions on how to use `mongoimport` with MongoDB Atlas. The included\ndataset is sized to be able to fit into a free M0 cluster on MongoDB Atlas.\n\n## Analysing Airbnb Data\n\n### Add a Data Source\n1. With a dataset in place, you'll want to enable Charts for your project. \n2. Select the _Charts_ link on the left-hand side, then select the \n_Activate MongoDB Charts_ button.\n3. Add a new data source to your project, choose the Cluster, database and \ncollection. For this example, I'll use the `sanFranciscoListingsAndReviews`\ncollection. Then I'll accept the default permissions.\n\n\n### Create a Dashboard\n1. Go to the *Dashboards* tab\n2. Click *New Dashboard*\n3. Enter a name and description\n\n### Add Some Charts\nInside the MongoDB Charts dashboard, you'll now add a chart to the dashboard.\n\n#### Multi-Series Stacked Bar Chart\n\nLet's locate the neighborhoods in San Francisco that have the most Airbnb\nproperties and split them out by property type.\n\n1. Select the San Francisco Airbnb (`airbnb.sanFranciscoListingsAndReviews`) dataset as the datasource.\n2. For the _Chart Type_ select *Bar/Stacked*.\n3. Use the following in the _Encoding_ sections for the chart data:\n    * X Axis: `_id`, Count aggregation\n    * Y Axis: `address.suburb`\n        * Sort By: Aggregated Value, Descending\n        * Limit: 30\n    *  Series: `property_type`\n4. Add a name to the chart, like _Properties by Location_ \n\nYour chart should look something like:\n\u003cimg src=\"https://webassets.mongodb.com/_com_assets/cms/Screen Shot 2018-12-07 at 11.13.16 AM-qtrn51nsjv.png\" alt=\"Properties by Location\"/\u003e\n\n---\n\nShow the areas with the most expensive properties, and correlate with the review scores.\n\nData Source: Select the San Francisco Airbnb (`airbnb.sanFranciscoListingsAndReviews`) dataset as the datasource.\n\nChart Title: _Price by Location, Colored by Location Review Score_\n\nChart Type: Bar / Colored\n\nEncodings:\n+ X Axis: `price`, Mean aggregation\n+ Y Axis: `address.suburb`\n    + Sort By: Aggregated Value, Descending\n    + Limit: 30\n+ Color: `review_scores.review_scores_location`, Mean aggregation\n\nYour chart should look something like:\n\u003cimg src=\"https://webassets.mongodb.com/_com_assets/cms/Screen Shot 2018-12-08 at 7.51.24 AM (3)-ulbmzx8f30.png\" alt=\"Price by Location, Colored by Location Review Score\"/\u003e\n\n---\n\nShow the number of properties with various review scores\n\nData Source: Select the San Francisco Airbnb (`airbnb.sanFranciscoListingsAndReviews`) dataset as the datasource.\n\nChart Title: _Review Score Histogram_\n\nChart Type: Column / Grouped\n\nEncodings:\n+ X Axis: `review_scores.review_scores_rating`\n    + Binning: On, bin size 5\n+ Y Axis: `_id`, Count aggregation\n+ Filter (to hide properties with no review score):\n    + ` { 'review_scores.review_score_rating': { $gte: 0 }}`\n\nYour chart should look something like:\n\u003cimg src=\"https://webassets.mongodb.com/_com_assets/cms/Screen Shot 2018-12-08 at 7.45.22 AM (3)-q8780dz7ru.png\" alt=\"Review Score Histogram\"/\u003e\n\n---\n\nShow the types of properties that contain pools.\n\nData Source: Select the San Francisco Airbnb (`airbnb.sanFranciscoListingsAndReviews`) dataset as the datasource.\n\nChart Title: _Properties with Pools_\n\nChart Type: Circular / Donut\n\nEncodings:\n+ Label: `property_type`\n+ Arc: `_id`, Count aggregation\n+ Filter (to show only properties with pools):\n    + ` { amenities: 'Pool' }`\n\nYour chart should look something like:\n\u003cimg src=\"https://webassets.mongodb.com/_com_assets/cms/Screen Shot 2018-12-08 at 7.46.53 AM (3)-njzr0e5yta.png\" alt=\"Properties with Pools\"/\u003e\n\n---\n\nShow the number of reviews of any property, month by month\n\nData Source: Select the San Francisco Airbnb (`airbnb.sanFranciscoListingsAndReviews`) dataset as the datasource.\n\nChart Title: _Reviews Over Time_\n\nChart Type: Area / Discrete\n\nEncodings:\n+ X Axis: `reviews.date`\n    + Array Reduction: Unwind Array\n    + Binning: On, bin by month\n+ Y Axis: `_id`, Count aggregation\n\nYour chart should look something like:\n\u003cimg src=\"https://webassets.mongodb.com/_com_assets/cms/Screen Shot 2018-12-08 at 7.48.12 AM (3)-5qzotqym2i.png\" alt=\"Reviews Over Time\"/\u003e\n\n---\n\nShow the number of properties with and without pools by area\n\nData Source: Select the San Francisco Airbnb (`airbnb.sanFranciscoListingsAndReviews`) dataset as the datasource.\n\nChart Title: _Pool or No Pool_\n\nChart Type: Column / Stacked\n\nEncodings:\n+ X Axis: `address.suburb`\n+ Y Axis: `_id`, Count aggregation\n+ Series: `amenities`\n    + Array Reduction: Existence of value: \"Pool\"\n    \nYour chart should look something like:\n\u003cimg src=\"https://webassets.mongodb.com/_com_assets/cms/Screen Shot 2018-12-08 at 7.49.37 AM (3)-ijnwj9qvka.png\" alt=\"Pool or No Pool\"/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongodb%2Fcharts-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmongodb%2Fcharts-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongodb%2Fcharts-demo/lists"}