{"id":20170318,"url":"https://github.com/marcodpt/chart","last_synced_at":"2025-03-03T04:16:06.223Z","repository":{"id":111252220,"uuid":"381142540","full_name":"marcodpt/chart","owner":"marcodpt","description":"A chart element based on chart.js","archived":false,"fork":false,"pushed_at":"2022-05-11T14:48:04.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-13T15:27:52.612Z","etag":null,"topics":["chart","chartjs","dom","element","es6","es6-module","esm"],"latest_commit_sha":null,"homepage":"https://marcodpt.github.io/h/?url=https%3A%2F%2Fcdn.jsdelivr.net%2Fgh%2Fmarcodpt%2Fchart%2Fsamples.js","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/marcodpt.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":"2021-06-28T19:37:08.000Z","updated_at":"2022-05-11T17:55:14.000Z","dependencies_parsed_at":"2023-03-13T13:43:04.483Z","dependency_job_id":null,"html_url":"https://github.com/marcodpt/chart","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcodpt%2Fchart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcodpt%2Fchart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcodpt%2Fchart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcodpt%2Fchart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcodpt","download_url":"https://codeload.github.com/marcodpt/chart/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241605820,"owners_count":19989612,"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":["chart","chartjs","dom","element","es6","es6-module","esm"],"created_at":"2024-11-14T01:18:17.521Z","updated_at":"2025-03-03T04:16:06.217Z","avatar_url":"https://github.com/marcodpt.png","language":"JavaScript","readme":"# chart\n\u003e A chart element based on [chart.js](https://www.chartjs.org/)\n\n[Live demo](https://marcodpt.github.io/h/?url=https%3A%2F%2Fcdn.jsdelivr.net%2Fgh%2Fmarcodpt%2Fchart%2Fsamples.js)\n\n## Usage\n```js\nimport chart from 'https://cdn.jsdelivr.net/gh/marcodpt/chart/index.js'\n\ndocument.body.appendChild(chart({\n  X: ['Jan', 'Fev', 'Mar'],\n  Y: [1.5, 3.0, 4.5]\n}))\n\ndocument.body.appendChild(chart({\n  X: ['Jan', 'Fev', 'Mar'],\n  Y: [\n    {\n      data: [1.5, 3.0, 4.5],\n      borderColor: 'blue',\n      label: 'Sells ($)'\n    }, {\n      data: [2.5, 3.0, 2.5],\n      borderColor: 'red',\n      label: 'Expenses ($)'\n    }\n  ]\n}))\n```\n\n## Params\n - string `type`: type of chart (default: line)\n - object `options`: chart options (default: {})\n - array `X`: labels of X axis\n - array `Y`: items can be just axis Y values or a object with the following\nprops:\n   - array `data`: axis Y values of this line\n   - string `borderColor`: color of line\n   - string `label`: the chart label of this line\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcodpt%2Fchart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcodpt%2Fchart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcodpt%2Fchart/lists"}