{"id":13482030,"url":"https://github.com/mathisonian/d3moji","last_synced_at":"2026-03-14T21:40:40.561Z","repository":{"id":31448457,"uuid":"35012245","full_name":"mathisonian/d3moji","owner":"mathisonian","description":"First class emoji support for D3","archived":false,"fork":false,"pushed_at":"2017-02-12T00:55:12.000Z","size":2729,"stargazers_count":126,"open_issues_count":3,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-29T19:43:50.465Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mathisonian.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-04T03:32:48.000Z","updated_at":"2024-10-13T21:01:57.000Z","dependencies_parsed_at":"2022-09-02T23:40:38.655Z","dependency_job_id":null,"html_url":"https://github.com/mathisonian/d3moji","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/mathisonian%2Fd3moji","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathisonian%2Fd3moji/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathisonian%2Fd3moji/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathisonian%2Fd3moji/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathisonian","download_url":"https://codeload.github.com/mathisonian/d3moji/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239720085,"owners_count":19686049,"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-07-31T17:00:58.372Z","updated_at":"2025-12-30T07:30:16.665Z","avatar_url":"https://github.com/mathisonian.png","language":null,"funding_links":[],"categories":["Miscellaneous"],"sub_categories":[],"readme":"\n![invert](https://cloud.githubusercontent.com/assets/1074773/22858734/c86a504c-f07a-11e6-97a1-4ec86c68f0d6.png)\n\n\n:chart_with_upwards_trend: First class emoji support for D3\n\n![emojigif](./images/emoji.gif)\n\n## installation\n\n### CommonJS\n\n```\nnpm install d3moji\n```\n\n```js\nvar d3 = require('d3')\nrequire('d3moji')(d3); // require and apply the plugin\n```\n\n\n### old school\n\nThe plugin is automatically applied when d3 is found on the window object.\n\n```html\n\u003cscript src=\"path/to/d3.js\" /\u003e\n\u003cscript src=\"path/to/d3moji.js\" /\u003e \n```\n\n\n\n## usage\n\n### Adding emoji to the svg\n\n```js\n\nsvg\n    .append('emoji')\n    .attr('symbol', 'smile') // codes taken from http://www.emoji-cheat-sheet.com/ the enclosing :colons: aren't necessary\n    // do all the standard d3 stuff\n    .attr('width', 30)\n    .attr('height', 30)\n    .attr('x', function(d) {\n        return d[0];\n    })\n    .attr('y', function(d) {\n        return d[1];\n    })\n\n```\n\n### selecting emoji\n\n```js\nd3.select('emoji'); // select the first one found\nd3.selectAll('emoji'); // select all emoji\n```\n\n\n## attribution\n\nThis project uses the open source [twemoji](https://github.com/twitter/twemoji) emoji svgs from twitter.\n\n## faq\n\n**why do you use the twitter emojis?** I couldn't find open SVG sets for the others. PR's welcome if you know more about this.\n\n## LICENSE \nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathisonian%2Fd3moji","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathisonian%2Fd3moji","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathisonian%2Fd3moji/lists"}