{"id":17375855,"url":"https://github.com/d3-node/d3node-linechart","last_synced_at":"2025-08-29T06:22:29.467Z","repository":{"id":52308547,"uuid":"84922030","full_name":"d3-node/d3node-linechart","owner":"d3-node","description":"LineChart generator using D3-Node","archived":false,"fork":false,"pushed_at":"2022-12-06T17:26:52.000Z","size":497,"stargazers_count":22,"open_issues_count":4,"forks_count":23,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-15T10:51:57.712Z","etag":null,"topics":["d3","d3-node","linechart","visualization"],"latest_commit_sha":null,"homepage":"","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/d3-node.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":"2017-03-14T08:03:53.000Z","updated_at":"2022-11-22T19:29:52.000Z","dependencies_parsed_at":"2023-01-24T10:30:47.381Z","dependency_job_id":null,"html_url":"https://github.com/d3-node/d3node-linechart","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/d3-node/d3node-linechart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3-node%2Fd3node-linechart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3-node%2Fd3node-linechart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3-node%2Fd3node-linechart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3-node%2Fd3node-linechart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d3-node","download_url":"https://codeload.github.com/d3-node/d3node-linechart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3-node%2Fd3node-linechart/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266507799,"owners_count":23940154,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","d3-node","linechart","visualization"],"created_at":"2024-10-16T04:04:03.535Z","updated_at":"2025-07-25T01:13:46.070Z","avatar_url":"https://github.com/d3-node.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## LineChart\n\nLineChart generator in node.js.\n\n## Install\n\n```bash\nnpm install d3node-linechart\n```\n\n## Usage\n\n```js\nconst d3nLine = require('d3node-linechart');\nconst line = d3nLine(data, selector, container, style)\n```\n\nCheck out the [examples](./examples) for usage.\n\n##### Output the example visualization\n\n```\ngit clone \u003cthis repo url\u003e\nnpm install\nnpm start\n```\n\n## Output Preview (png):\n\n![Single line chart](./examples/output.png)\n![Multi line chart](./examples/output-multiline.png)\n\n\n## API\n\n### d3nLine({ data[, selector, container, style] })\n\n#### options\n\n##### data\n\n- Type: `Array`\n\nData from file or web processed by d3 library.\n\nSingle line is of the form `[ { key: x, value: y }, ...]`\n\nMultiline is of the form `[ \"keys\": [all, possible, x's, ...], [ { key: x, value: y }, ...], ...]`.\n\nExamples:\n\n- Single line:\n\n```js\n[ { key: 0, value: 3 }, { key: 1, value: 2 }, { key: 2, value: 1 } ]\n```\n\n- Multiline:\n\n```js\n[ \"keys\": [0, 1, 2],\n   [ { key: 0, value: 3 }, { key: 1, value: 2 }, { key: 2, value: 1 } ],\n   [ { key: 0, value: 1 }, { key: 1, value: 2 }, { key: 2, value: 3 } ]]\n```\n\n##### selector\n\n- Type: `String`\n- Default: `'#chart'`\n\nDOM selector in container.\n\n##### container\n\n- Type: `String`\n- Default: `\u003cdiv id=\"container\"\u003e\u003ch2\u003eLine Chart\u003c/h2\u003e\u003cdiv id=\"chart\"\u003e\u003c/div\u003e\u003c/div\u003e`\n\nDOM contain the visualization result.\n\n##### style\n\n- Type: `String`\u003cbr\u003e\n- Default: `''`\n\nLinechart style.\n\n## Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n\n### LICENSE\n\n[MIT](LICENSE) \u0026copy; [d3-node](https://github.com/d3-node)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd3-node%2Fd3node-linechart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd3-node%2Fd3node-linechart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd3-node%2Fd3node-linechart/lists"}