{"id":31947594,"url":"https://github.com/vizzuality/wp-osma-charts","last_synced_at":"2026-04-29T21:01:59.791Z","repository":{"id":137473921,"uuid":"101772941","full_name":"Vizzuality/wp-osma-charts","owner":"Vizzuality","description":"OSM analytics charts for Wordpress","archived":false,"fork":false,"pushed_at":"2018-04-16T17:20:04.000Z","size":451,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-21T11:58:44.268Z","etag":null,"topics":["chart","charts","d3","openstreetmap","osm","osm-analytics","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/Vizzuality.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-08-29T14:51:21.000Z","updated_at":"2018-04-16T17:20:06.000Z","dependencies_parsed_at":"2023-08-27T06:15:23.053Z","dependency_job_id":null,"html_url":"https://github.com/Vizzuality/wp-osma-charts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Vizzuality/wp-osma-charts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vizzuality%2Fwp-osma-charts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vizzuality%2Fwp-osma-charts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vizzuality%2Fwp-osma-charts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vizzuality%2Fwp-osma-charts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vizzuality","download_url":"https://codeload.github.com/Vizzuality/wp-osma-charts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vizzuality%2Fwp-osma-charts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32443576,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T20:22:27.477Z","status":"ssl_error","status_checked_at":"2026-04-29T20:22:26.507Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["chart","charts","d3","openstreetmap","osm","osm-analytics","wordpress","wordpress-plugin"],"created_at":"2025-10-14T11:46:12.123Z","updated_at":"2026-04-29T21:01:59.786Z","avatar_url":"https://github.com/Vizzuality.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Open Street Maps Analytics Charts\n\nThis Wordpress plugin provides integration with OSMA to display charts and maps inside pages.\n\n## Installation\n\nInstall like any other Wordpress plugin\n\n## Configuration\n\nThe plugin supports 2 configuration values, both of which are required:\n- API URL: Address the API endpoint, typically ending in `/api/v1`\n- Site URL: Address of the OSM analytics site, used in map embeds.\n\n\n## Usage\n\nThe plugin currently provides 3 shortcodes, each rendering a different visualization:\n\n#### Compare map:\n![Compare map](https://github.com/GFDRR/osm-analytics-wp-charts/blob/master/samples/map.png?raw=true 'Compare map')\n\nThe compare map consists of a trimmed-down, embedded version of the OSM Analytics site. It uses a slider to show the status \nof OSM contributions in two dates, allowing a seamless visual comparison between them.\n\n###### Shortcode:\n`osma_charts_compare_map`\n\n###### Options + example values:\n- __country__ or __polygon__ (mandatory) ISO3 country code or an encoded polyline of the area of interest related to the project (ie `ifv%7BDndwkBx%60%40aYwQev%40sHkPuf%40ss%40%7BfA_%40uq%40xdCn%7D%40%5E`))\n- __default_start_year__ (`2016`) represents the start year of an OpenDRI project\n- __default_end_year__ (`now`) represents the end year of an OpenDRI project. `now` can also be provided to compare with latest OSM data\n- __default_feature_type__ (`buildings`) compare `buildings` or `highways`\n\n###### Example:\n\n```\n[osma_charts_compare_map country=\"HTI\" default_feature_type=\"highways\" default_start_year=\"2015\" default_end_year=\"now\"]\n```\n\n#### Activity chart:\n![Activity chart](https://github.com/GFDRR/osm-analytics-wp-charts/blob/master/samples/activity.png?raw=true \"Activity chart\")\n\nThe activity charts illustrate a comparison between contributions done on multiple OSM features. As the features may not be directly aggregatable,\na simplified [https://en.wikipedia.org/wiki/Mahalanobis_distance](Mahalanobis distance) calculation is used to aggregate contributions.  \n\n###### Shortcode:\n`osma_charts_activity`\n\n###### Options + example values:\n- __country__ or __polygon__ (mandatory) ISO3 country code or an encoded polyline of the area of interest related to the project (ie `ifv%7BDndwkBx%60%40aYwQev%40sHkPuf%40ss%40%7BfA_%40uq%40xdCn%7D%40%5E`))\n- __start_date__ (mandatory) (`2016-01-01`) represents the start date of an OpenDRI project\n- __end_date__ (mandatory) (`2017-01-01`) represents the end date of an OpenDRI project\n- __default_granularity__ (`daily`) show activity `daily|weekly|monthly` by default\n- __default_facet__ (`features`) show either `features` or `users` histogram by default. `users` facet is only supported if precision is set to 13.\n- __precision__ (`13`) value between 1 and 13, specifying accuracy of data to display.\n\n###### Example:\n\n```\n[osma_charts_activity country=\"HTI\" start_date=\"2000-01-01\" end_date=\"2017-02-01\" default_granularity=\"monthly\" default_facet=\"features\"]\n```\n\n#### Contributors chart:\n![Contributors chart](https://github.com/GFDRR/osm-analytics-wp-charts/blob/master/samples/contributors.png?raw=true \"Contributors chart\")\n\nThe contributors chart shows a list of the top users for the given filter options, and an aggregated value for the remaining contributions\n\n###### Shortcode:\n`osma_charts_contributors`\n\n###### Options + example values:\n- __country__ or __polygon__ (mandatory) ISO3 country code or an encoded polyline of the area of interest related to the project (ie `ifv%7BDndwkBx%60%40aYwQev%40sHkPuf%40ss%40%7BfA_%40uq%40xdCn%7D%40%5E`))\n- __start_date__ (mandatory) (`2016-01-01`) represents the start date of an OpenDRI project\n- __end_date__ (mandatory) (`2017-01-01`) represents the end date of an OpenDRI project\n- __num_users__ (`10`) number of users to show on the chart.\n- __feature_type__ (`buildings`) buildings, highways or waterways\n \n###### Example:\n\n```\n[osma_charts_statistics_table country=\"UGA\" start_date=\"2010/01/01\" end_date=\"2017/02/01\" statistics=\"buildings-users,buildings-activity,waterways-users,waterways-activity\"]\n```\n\n#### Statistics table:\n![Statistics table](https://github.com/GFDRR/osm-analytics-wp-charts/blob/master/samples/statistics.png?raw=true \"Statistics table\")\n\nThe statistics table shows a list of the most relevant statistics for a given geography and time range.\n\n###### Shortcode:\n`osma_charts_statistics_table`\n\n###### Options + example values:\n- __country__ or __polygon__ (mandatory) ISO3 country code or an encoded polyline of the area of interest related to the project (ie `ifv%7BDndwkBx%60%40aYwQev%40sHkPuf%40ss%40%7BfA_%40uq%40xdCn%7D%40%5E`))\n- __start_date__ (mandatory) (`2016-01-01`) represents the start date of an OpenDRI project\n- __end_date__ (mandatory) (`2017-01-01`) represents the end date of an OpenDRI project\n- __statistics__ (mandatory) (`buildings-users,...`) a comma separated list of feature/type pairs. Each feature/type pair must be separated by a dash. Features can be \n  `buildings`, `waterways` or `waterways`, and type should be either `users` or `activity`. `users` statistics are only available if precision is set to 13.\n- __precision__ (`13`) value between 1 and 13, specifying accuracy of data to display.\n\n \n###### Example:\n\n```\n[osma_charts_statistics_table country=\"UGA\" start_date=\"2010/01/01\" end_date=\"2017/02/01\" statistics=\"buildings-users,buildings-activity,waterways-users,waterways-activity\"]\n```\n\n\n#### Statistic value:\n\nShows a single statistical value for a given geography and time range. Ideal for embedding inline with other text.\n\n###### Shortcode:\n`osma_charts_statistic_value`\n\n###### Options + example values:\n- __country__ or __polygon__ (mandatory) ISO3 country code or an encoded polyline of the area of interest related to the project (ie `ifv%7BDndwkBx%60%40aYwQev%40sHkPuf%40ss%40%7BfA_%40uq%40xdCn%7D%40%5E`))\n- __start_date__ (mandatory) (`2016-01-01`) represents the start date of an OpenDRI project\n- __end_date__ (mandatory) (`2017-01-01`) represents the end date of an OpenDRI project\n- __feature_type__ (mandatory) (`buildings`) `buildings`, `waterways` or `waterways`\n- __statistic__ (mandatory) (`users`) type should be either `users` or `activity`. `users` statistics are only available if precision is set to 13.\n- __precision__ (`13`) value between 1 and 13, specifying accuracy of data to display.\n\n###### Example:\n\n```\n[osma_charts_statistic_value country=\"UGA\" start_date=\"2010/01/01\" end_date=\"2017/02/01\" feature_type=\"buildings\" statistic=\"activity\"]\n```\n\n\n## Development / build from source\n\nThis plugin is a Wordpress wrapper for JavaScript/CSS found in [OSMA Charts](https://github.com/Vizzuality/osma-charts), and the content of `scripts` and `styles` are exports of that project.\n\nOn the \u003ca href=\"https://github.com/Vizzuality/wp-osma-charts\"\u003esource repo\u003c/a\u003e, build and push:\n```\nnpm run build\n...\ngit push origin master\n```\n\nOn this repo, update and copy the dependencies:\n```\nnpm update \u0026\u0026 npm run update-osma-charts\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvizzuality%2Fwp-osma-charts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvizzuality%2Fwp-osma-charts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvizzuality%2Fwp-osma-charts/lists"}