{"id":23220443,"url":"https://github.com/ehanlin/line-chart","last_synced_at":"2026-04-27T22:31:32.621Z","repository":{"id":21830187,"uuid":"25153196","full_name":"eHanlin/line-chart","owner":"eHanlin","description":null,"archived":false,"fork":false,"pushed_at":"2014-12-08T02:47:40.000Z","size":192,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-13T13:19:55.663Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eHanlin.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":"2014-10-13T09:59:36.000Z","updated_at":"2014-12-08T02:47:40.000Z","dependencies_parsed_at":"2022-08-20T00:00:37.372Z","dependency_job_id":null,"html_url":"https://github.com/eHanlin/line-chart","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/eHanlin%2Fline-chart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eHanlin%2Fline-chart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eHanlin%2Fline-chart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eHanlin%2Fline-chart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eHanlin","download_url":"https://codeload.github.com/eHanlin/line-chart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247356407,"owners_count":20925819,"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-12-18T22:12:09.048Z","updated_at":"2026-04-27T22:31:32.594Z","avatar_url":"https://github.com/eHanlin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Line Chart\n\n## 說明\n1.依賴於 D3.js\n\n### 安裝 Install\n1. sudo npm install d3\n\n### 資料結構 Data structure\n```\nvar data = [\n           \t{title: \"寫作能力\",\ttTitle: \"精熟平均\", bTitle: \"基礎平均\", rightRate: 0.2, basicRate:0.5, skilledRate: 0.7}, \n           \t{title: \"形音義\",\t\ttTitle: \"精熟平均\", bTitle: \"基礎平均\", rightRate: 0.8, basicRate:0.6, skilledRate: 0.9}, \n           \t{title: \"詞句成語\",\ttTitle: \"精熟平均\", bTitle: \"基礎平均\", rightRate: 0.7, basicRate:0.5, skilledRate: 0.8},\n           \t{title: \"java\",\t\ttTitle: \"精熟平均\", bTitle: \"基礎平均\", rightRate: 0.01, basicRate:0.5, skilledRate: 0.8},\n           \t{title: \"java\",\t\ttTitle: \"精熟平均\", bTitle: \"基礎平均\", rightRate: 0.02, basicRate:0.5, skilledRate: 0.5},\n           \t{title: \"java\", \ttTitle: \"精熟平均\", bTitle: \"基礎平均\", rightRate: 1, basicRate:0.5, skilledRate: 0.8}\n           ];\n\n```\n\n### 範例 examp\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n\u003chead\u003e\n\t\u003cmeta charset=\"utf-8\"\u003e\n\t\u003cmeta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\"\u003e\n\t\u003ctitle\u003eradar chart\u003c/title\u003e\n\t\u003cmeta name=\"author\" content=\"ocean\"\u003e\n\t\u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" /\u003e\n\t\u003clink rel=\"stylesheet\" href=\"./src/line-chart.css\"/\u003e\n\t\u003cstyle\u003e\n\t\t#box{\n\t\t\twidth: 100%;\n\t\t\theight: 610px;\n\t\t}\n\t\u003c/style\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n\t\u003cdiv id=\"lineBox\"\u003e\u003c/div\u003e\n\u003c/body\u003e\n\n\u003cscript src=\"./node_modules/d3/d3.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"./src/line-chart.js\"\u003e\u003c/script\u003e\n\n\u003cscript\u003e\nvar data = [\n           \t{title: \"寫作能力\",  tTitle: \"精熟平均\", bTitle: \"基礎平均\", rightRate: 0.2, basicRate:0.5, skilledRate: 0.7}, \n           \t{title: \"形音義\",\t   tTitle: \"精熟平均\", bTitle: \"基礎平均\", rightRate: 0.8, basicRate:0.6, skilledRate: 0.9}, \n           \t{title: \"詞句成語\",  tTitle: \"精熟平均\", bTitle: \"基礎平均\", rightRate: 0.7, basicRate:0.5, skilledRate: 0.8},\n           \t{title: \"詞句成語2\", tTitle: \"精熟平均\", bTitle: \"基礎平均\", rightRate: 1, basicRate:0.5, skilledRate: 0.8}\n           ];\nwindow.LineChart.draw(\"#lineBox\", data);\nwindow.LineChart.draw(\"#lineBox\", data);\n\n\u003c/script\u003e\n\u003c/html\u003e\n\n```\n\n\n\n### 設定 Configure\n```javascript\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehanlin%2Fline-chart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fehanlin%2Fline-chart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehanlin%2Fline-chart/lists"}