{"id":20406117,"url":"https://github.com/9-volt/words-frequency-visualization","last_synced_at":"2026-05-07T23:05:22.704Z","repository":{"id":71234339,"uuid":"10299162","full_name":"9-volt/Words-Frequency-Visualization","owner":"9-volt","description":"Most mentioned politicians in public articles","archived":false,"fork":false,"pushed_at":"2014-05-21T23:59:13.000Z","size":8802,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"gh-pages","last_synced_at":"2025-01-15T12:14:41.805Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","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/9-volt.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}},"created_at":"2013-05-26T14:51:19.000Z","updated_at":"2014-05-21T23:59:15.000Z","dependencies_parsed_at":"2023-02-22T01:00:14.416Z","dependency_job_id":null,"html_url":"https://github.com/9-volt/Words-Frequency-Visualization","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9-volt%2FWords-Frequency-Visualization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9-volt%2FWords-Frequency-Visualization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9-volt%2FWords-Frequency-Visualization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9-volt%2FWords-Frequency-Visualization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/9-volt","download_url":"https://codeload.github.com/9-volt/Words-Frequency-Visualization/tar.gz/refs/heads/gh-pages","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241950489,"owners_count":20047644,"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","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-11-15T05:15:07.327Z","updated_at":"2026-05-07T23:05:22.676Z","avatar_url":"https://github.com/9-volt.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Words Frequency Visualization\n\n## How to run Grunt\n\n1. Install Nodejs\n2. Install [Grunt](http://gruntjs.com/getting-started) `npm install -g grunt-cli`\n3. clone repo\n4. cd into project folder\n5. run command ```npm install```\n6. run command ```grunt server``` for live development\n7. run command `grunt build` for building styles and concatenating scripts\n\n[A demo](http://9-volt.github.io/Words-Frequency-Visualization/app/) with dummy data.\n\n## JSON data format\n\nJSON object represents a tree with keys: `year -\u003e month -\u003e entity key -\u003e (title \u0026 occurences)`\n\n```json\n{\n\"2009\": {\n  \"1\": {\n    \"key1\":{\"name\":\"V. Ciobanu\",\"occurences\":99.9999},\n    \"key2\":{\"name\":\"L. Ciobanu\",\"occurences\":115},\n    \"key3\":{\"name\":\"D. Ungureanu\",\"occurences\":2},\n    \"key4\":{\"name\":\"S. Deleanu\",\"occurences\":63}\n  },\n  \"2\": {\n    \"key1\":{\"name\":\"V. Ciobanu\",\"occurences\":23},\n    \"key2\":{\"name\":\"L. Ciobanu\",\"occurences\":53},\n    \"key3\":{\"name\":\"D. Ungureanu\",\"occurences\":7},\n    \"key4\":{\"name\":\"S. Deleanu\",\"occurences\":34}\n  }\n}\n```\n\nEach entity should use only one unique key and the same name. Years and months should be consistent (no gaps). Same entities should be used for all months (even if an entity has a 0 occurences value).\n\n## Plugin initialization\n\nTo initialize visualization it is enough to load styles, script and run\n\n```js\n$(function () {\n  $('#container').words_mentions()\n});\n```\n\nBy default data will be searched at `data/dataset.json` uri. You may change it by passing a configuration object to plugin initialization method:\n\n```js\n$(function () {\n  $('#container').words_mentions({\n    data_source: 'data/dataset.json'\n  })\n});\n```\n\nYou may find all default configuration settings at the end of the plugin.\n\nTo set entities pictures set `images` configuration value:\n\n```js\n$(function () {\n  $('#container').words_mentions({\n    data_source: 'data/dataset.json',\n    images: {\n      \"V. Ciobanu\": 'images/1.jpg',\n      \"L. Ciobanu\": 'images/2.jpg',\n      \"D. Ungureanu\": 'images/3.jpg',\n      \"S. Deleanu\": 'images/4.jpg'\n    }\n  })\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F9-volt%2Fwords-frequency-visualization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F9-volt%2Fwords-frequency-visualization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F9-volt%2Fwords-frequency-visualization/lists"}