{"id":21956729,"url":"https://github.com/juijs/jui-chart","last_synced_at":"2025-08-21T03:32:09.524Z","repository":{"id":2880734,"uuid":"47774618","full_name":"juijs/jui-chart","owner":"juijs","description":"SVG-based JUI chart that can be used in the browser and Node.js. Support many types of charts. (Dashboard, Map, Topology, Full 3D, Realtime)","archived":false,"fork":false,"pushed_at":"2022-12-10T16:32:20.000Z","size":8604,"stargazers_count":57,"open_issues_count":108,"forks_count":25,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-08-09T09:24:58.505Z","etag":null,"topics":["animation","canvas","chart","javascript","realtime","svg"],"latest_commit_sha":null,"homepage":"https://codepen.io/collection/nLydod/","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/juijs.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":"2015-12-10T16:43:06.000Z","updated_at":"2024-04-11T19:41:20.000Z","dependencies_parsed_at":"2022-08-06T13:00:29.395Z","dependency_job_id":null,"html_url":"https://github.com/juijs/jui-chart","commit_stats":null,"previous_names":[],"tags_count":46,"template":false,"template_full_name":null,"purl":"pkg:github/juijs/jui-chart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juijs%2Fjui-chart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juijs%2Fjui-chart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juijs%2Fjui-chart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juijs%2Fjui-chart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juijs","download_url":"https://codeload.github.com/juijs/jui-chart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juijs%2Fjui-chart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271144075,"owners_count":24706520,"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-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["animation","canvas","chart","javascript","realtime","svg"],"created_at":"2024-11-29T08:38:00.327Z","updated_at":"2025-08-21T03:32:09.058Z","avatar_url":"https://github.com/juijs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Installation\n\n### NPM\n```bash\nnpm install juijs-chart\n```\n\n### Browser\n\n```html\n\u003cscript src=\"../dist/vendors.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"../dist/jui-chart.js\"\u003e\u003c/script\u003e\n```\n\n### ES Modules\n\nThe difference with the existing method is that you need to add the module directly using the 'use' function.\n\n```js\nimport graph from 'juijs-chart'\nimport BarBrush from 'juijs-chart/src/brush/bar.js'\nimport ColumnBrush from 'juijs-chart/src/brush/column.js'\nimport TitleWidget from 'juijs-chart/src/widget/title.js'\n\ngraph.use(BarBrush, ColumnBrush, TitleWidget);\n```\n\n## Usage\n\n```html\n\u003cdiv id=\"chart\"\u003e\u003c/div\u003e\n```\n\nThe UI component creation code is the same as the existing one.\n\n```js\ngraph.ready([ \"chart.builder\" ], function(builder) {\n    var obj = builder(\"#chart\", {\n        width: 600,\n        height : 600,\n        theme : \"classic\",\n        axis : {\n            x : {\n                type : \"block\",\n                domain : \"quarter\",\n                line : true\n            },\n            y : {\n                type : \"range\",\n                domain : function(d) { return [d.sales, d.profit ]; },\n                step : 3,\n                line : true,\n                orient : \"right\"\n            },\n            data : [\n                { quarter : \"1Q\", sales : 1, profit : 3 },\n                { quarter : \"2Q\", sales : 3, profit : 2 },\n                { quarter : \"3Q\", sales : 10, profit : 1 },\n                { quarter : \"4Q\", sales : 0.49, profit : 4}\n            ]\n        },\n        brush : [{\n            type : \"column\",\n            target : [ \"sales\", \"profit\" ]\n        }],\n        widget : [{\n            type: \"title\",\n            text: \"hihi\"\n        }]\n    });\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuijs%2Fjui-chart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuijs%2Fjui-chart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuijs%2Fjui-chart/lists"}