{"id":13481586,"url":"https://github.com/wbkd/d3-extended","last_synced_at":"2025-04-05T21:08:50.327Z","repository":{"id":31246167,"uuid":"34807644","full_name":"wbkd/d3-extended","owner":"wbkd","description":"Extends D3 with some common jQuery functions and more","archived":false,"fork":false,"pushed_at":"2017-08-30T13:52:22.000Z","size":942,"stargazers_count":273,"open_issues_count":0,"forks_count":27,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-03-29T20:05:20.415Z","etag":null,"topics":["d3","d3js","datavisualization"],"latest_commit_sha":null,"homepage":"http://wbkd.github.io/d3-extended/","language":"JavaScript","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/wbkd.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-04-29T17:23:35.000Z","updated_at":"2025-03-22T11:23:07.000Z","dependencies_parsed_at":"2022-08-30T16:11:36.261Z","dependency_job_id":null,"html_url":"https://github.com/wbkd/d3-extended","commit_stats":null,"previous_names":["wbkd/d3-extended"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wbkd%2Fd3-extended","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wbkd%2Fd3-extended/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wbkd%2Fd3-extended/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wbkd%2Fd3-extended/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wbkd","download_url":"https://codeload.github.com/wbkd/d3-extended/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247399877,"owners_count":20932876,"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":["d3","d3js","datavisualization"],"created_at":"2024-07-31T17:00:53.088Z","updated_at":"2025-04-05T21:08:50.310Z","avatar_url":"https://github.com/wbkd.png","language":"JavaScript","funding_links":[],"categories":["Utils"],"sub_categories":[],"readme":"# [d3 Extended](http://wbkd.github.io/d3-extended/)\n\nd3 Extended is **compatible with d3 v4**. If you are looking for the v3 compatible module you can find it on the [v3 branch](https://github.com/wbkd/d3-extended/tree/v3).\n\nThis module extends [d3-selection](https://github.com/d3/d3-selection) with helpful functions which are similar to the jQuery API. If you want to get to know more about this project, feel free to read the blog post: [Replacing jQuery with d3](http://blog.webkid.io/replacing-jquery-with-d3).\n\nYou can find the docs on the [d3 Extended website](http://wbkd.github.io/d3-extended/)\n\n### Installation\n\n**npm**\n\n```shell\nnpm install --save d3-extended\n```\n\n**git clone**\n\n```shell\ngit clone https://github.com/wbkd/d3-extended.git\n```\n\n\n### Usage\n\n**ES6 modules**\n\n```javascript\nimport * as d3Selection from 'd3-selection';\nimport 'd3-extended'; // d3Selection is now extended\n```\n\n**CommonJS**\n\n```javascript\nconst d3Selection = require('d3-selection');\nrequire('d3-extended'); // d3Selection is now extended\n```\n\n**Oldschool**\n\nYou can use the compressed or uncompressed version.\nTo use the plugin, include it after d3-selection in your HTML:\n\n```html\n\u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/d3-selection/1.1.0/d3-selection.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"path/to/d3-extended.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  // d3 is now extended\n\u003c/script\u003e\n```\n\n\n### Build\n\nTo build d3-extended run ```npm run build```.\nThis will create d3-extended.js and a minified version in the build folder.\n\n### Test\n\nTo run tests use ```npm test```. Note: The tests require that you have [phantomjs](http://phantomjs.org/) installed globally. If you see errors, try ```npm install -g phantomjs``` before running the tests.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwbkd%2Fd3-extended","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwbkd%2Fd3-extended","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwbkd%2Fd3-extended/lists"}