{"id":13426691,"url":"https://github.com/justinmanley/playfair","last_synced_at":"2025-05-05T19:31:39.378Z","repository":{"id":19454600,"uuid":"22698936","full_name":"justinmanley/playfair","owner":"justinmanley","description":"Generate charts and graphs from the command line using d3 and PhantomJS.","archived":false,"fork":false,"pushed_at":"2014-08-09T04:44:23.000Z","size":896,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-22T16:06:56.034Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/justinmanley.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":"2014-08-06T21:34:38.000Z","updated_at":"2024-10-13T20:59:39.000Z","dependencies_parsed_at":"2022-08-24T01:20:42.663Z","dependency_job_id":null,"html_url":"https://github.com/justinmanley/playfair","commit_stats":null,"previous_names":["manleyjster/playfair"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinmanley%2Fplayfair","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinmanley%2Fplayfair/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinmanley%2Fplayfair/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinmanley%2Fplayfair/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justinmanley","download_url":"https://codeload.github.com/justinmanley/playfair/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252200414,"owners_count":21710435,"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-31T00:01:41.559Z","updated_at":"2025-05-05T19:31:34.358Z","avatar_url":"https://github.com/justinmanley.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"playfair\n=====\n\nGenerate charts and graphs from the command line using d3 and PhantomJS.\n\n### Usage ###\n\nInstall playfair with\n\n```\nnpm install -g playfair\n```\n\nThen, you can render SVG graphics from JavaScript (produced using d3 or any other library with facilities for SVG drawing) with the command:\n\n```\nplayfair \u003cmyfile.html\u003e.\n```\n\n### Options ###\n\n\n#### Output file: `-o --output`\n\nBy default, playfair saves SVG output to a file named `output.svg`.  You can redirect this output with the `-o --output` option:\n\n```\nplayfair index.html --output example.svg\n```\n\n#### Selector: `-i --id`\n\nBy default, playfair retrieves the first SVG element from the document.  You can pass in an id with the `-i --id` option:\n\n```\nplayfair index.html --id example-id\n```\n\nThis will extract the first matching SVG node from the document using `document.querySelector(\"svg#example-id\")`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinmanley%2Fplayfair","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustinmanley%2Fplayfair","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinmanley%2Fplayfair/lists"}