{"id":17042631,"url":"https://github.com/fdietze/scala-js-d3v4","last_synced_at":"2025-10-05T03:03:09.179Z","repository":{"id":15635815,"uuid":"78556844","full_name":"fdietze/scala-js-d3v4","owner":"fdietze","description":"ScalaJS facade types for D3 version 5","archived":false,"fork":false,"pushed_at":"2025-03-17T17:03:53.000Z","size":359,"stargazers_count":55,"open_issues_count":7,"forks_count":26,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-31T08:12:05.395Z","etag":null,"topics":["d3","d3v4","facade","scala-js"],"latest_commit_sha":null,"homepage":"","language":"Scala","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/fdietze.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-10T17:27:28.000Z","updated_at":"2025-03-17T17:03:58.000Z","dependencies_parsed_at":"2023-09-26T18:58:01.905Z","dependency_job_id":"16652c74-f513-4010-a784-d4d061dd854c","html_url":"https://github.com/fdietze/scala-js-d3v4","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/fdietze%2Fscala-js-d3v4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdietze%2Fscala-js-d3v4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdietze%2Fscala-js-d3v4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdietze%2Fscala-js-d3v4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fdietze","download_url":"https://codeload.github.com/fdietze/scala-js-d3v4/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247633409,"owners_count":20970312,"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","d3v4","facade","scala-js"],"created_at":"2024-10-14T09:18:06.265Z","updated_at":"2025-10-05T03:03:09.075Z","avatar_url":"https://github.com/fdietze.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](https://jitpack.io/v/fdietze/scala-js-d3v4.svg)](https://jitpack.io/#fdietze/scala-js-d3v4)\n\n# ScalaJS facade types for D3 version 5\n* Heavily inspired by [spaced/scala-js-d3](https://github.com/spaced/scala-js-d3)\n* D3 modules are imported automatically by bundler when needed.\n\n## Usage\nSupported are ScalaJS` 1.0` with Scala `2.12` and `2.13`.\n\n\n* Set up [Scalajs-Bundler](https://scalacenter.github.io/scalajs-bundler/) for your project.\n* In your `build.sbt`:\n  ```scala\n  resolvers += \"jitpack\" at \"https://jitpack.io\"\n  libraryDependencies += \"com.github.fdietze.scala-js-d3v4\" %%% \"scala-js-d3v4\" % \"809f086\"\n  ```\n\n  Don't forget to update the commit hash. You can also use the hashes of branches and PRs.\n\n* Use d3 like you know it from JavaScript (http://devdocs.io/d3~4):\n\n  ```scala\n  import d3v4._\n\n  d3.___\n  ```\n\n* Contribute missing facades as pull requests. Most of the time this can be done in a few lines of code. You get a good overview of what exists and what is missing when looking at [src/main/scala](https://github.com/fdietze/scala-js-d3v4/tree/master/src/main/scala). Each File corresponds to a module in d3: https://devdocs.io/d3~4. To add a new module, simply create a new file and implement the facades you need. Finally add an implicit to your module in [D3.scala](https://github.com/fdietze/scala-js-d3v4/blob/master/src/main/scala/D3.scala#L38).\n* Don't hesitate to open new Issues.\n\n## Facade writing guidelines\n* Ref types involving null don't need a union type with Null. Provide wrapper methods mapping to Option.\n* Prefer overloading in most cases. But use union types to avoid combinatorial explosion.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdietze%2Fscala-js-d3v4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffdietze%2Fscala-js-d3v4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdietze%2Fscala-js-d3v4/lists"}