{"id":22490068,"url":"https://github.com/djaxho/pure-vue-chart","last_synced_at":"2025-08-31T22:16:02.500Z","repository":{"id":37734757,"uuid":"191131692","full_name":"djaxho/pure-vue-chart","owner":"djaxho","description":"Simple and lightweight vue chart component without using chart library dependencies","archived":false,"fork":false,"pushed_at":"2023-01-04T21:49:35.000Z","size":1846,"stargazers_count":61,"open_issues_count":32,"forks_count":19,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-24T08:15:46.568Z","etag":null,"topics":["chart","charts","graph","svg","trend","vue","vue-components","vue2","vue3","vuejs"],"latest_commit_sha":null,"homepage":null,"language":"Vue","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/djaxho.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":"2019-06-10T08:52:45.000Z","updated_at":"2024-01-26T18:56:39.000Z","dependencies_parsed_at":"2023-02-02T21:15:36.751Z","dependency_job_id":null,"html_url":"https://github.com/djaxho/pure-vue-chart","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djaxho%2Fpure-vue-chart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djaxho%2Fpure-vue-chart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djaxho%2Fpure-vue-chart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djaxho%2Fpure-vue-chart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/djaxho","download_url":"https://codeload.github.com/djaxho/pure-vue-chart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228500713,"owners_count":17930113,"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","charts","graph","svg","trend","vue","vue-components","vue2","vue3","vuejs"],"created_at":"2024-12-06T17:21:47.954Z","updated_at":"2025-08-02T22:32:04.678Z","avatar_url":"https://github.com/djaxho.png","language":"Vue","funding_links":[],"categories":["Vue","Components \u0026 Libraries","UI Components","UI Components [🔝](#readme)"],"sub_categories":["UI Components","Charts"],"readme":"\u003cp align=\"center\"\u003e\n  \u003ch1\u003ePure Vue Chart\u003c/h1\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    A simple and lightweight vue component for making charts that do not rely on large chart libraries and will not bloat your dependencies\n\u003c/p\u003e\n\u003chr/\u003e\n\n\u003ch3\u003eExample\u003c/h3\u003e\n\n```\n\u003cpure-vue-chart\n  :points=\"[3,5,2,5,4]\"\n  :width=\"400\"\n  :height=\"200\"\n/\u003e\n```\n\n\u003cimg src=\"src/assets/charts.gif\" alt=\"charts\" width=\"350\"/\u003e\n\n\u003cp\u003eWhen props are updated the graph will automatically animate to the new values.\u003c/p\u003e\n\n## Install\n```\nnpm i pure-vue-chart\n```\nImport it:\n```\nimport PureVueChart from 'pure-vue-chart';\n```\nRegister it in your component:\n```\ncomponents: {\n    PureVueChart,\n},\n```\n## Use it\n```\n\u003cpure-vue-chart\n  :points=\"[3,5,2,5,4]\"\n  :width=\"400\"\n  :height=\"200\"\n/\u003e\n```\n## Options\n\u003cp\u003eTo further control the display of data, you can use simple props to manipulate the charts. Here are some examples:\u003c/p\u003e\n\n![](src/assets/chart-examples.png)\n\n#### Most of the available props below are self-explanatory:\n```\n:points=[1,4,5,3,4]\n:show-y-axis=\"false\"\n:show-x-axis=\"true\"\n:width=\"400\"\n:height=\"200\"\n:show-values=\"true\"\n:use-month-labels=\"true\"\n:months=\"['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez']\"\n```\n\n### Additional Features:\n#### Trendline\nYou can add a simple linear trend line by using the following props:\n```\n:show-trend-line=\"true\"\n:trend-line-width=\"2\"\ntrend-line-color=\"lightblue\"\n```\n![](src/assets/trendline.png)\n\n#### X-axis labels:\nX-axis labels, by default will be from 1 - length-of-data.\nBut you can automatically use Months by using the prop `:use-month-labels=\"true\"`.\nOr you can provide the data as an array of objects, each with a `value` and `label` like so:\n```\n:points=[{label: 'N', value: 41.1}, {label: 'NW', value: 1}, {label: 'W', value: 15}]\n```\n\n\u003ch3\u003eContributing\u003c/h3\u003e\nI'm open to any issues or pull requests so long as\nthey are simple, easy to read, use the eslint settings in package.json, \nand follow commitizen-esque style commit formats. Just open an issue on github and start a discussion.\n- pure-vue-chart issues - https://github.com/djaxho/pure-vue-chart/issues\n\n\u003ch3\u003eAuthors or Acknowledgments\u003c/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eDanny Jackson\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch3\u003e List of features \u003c/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eSimple bar charts\u003c/li\u003e\n  \u003cli\u003eLine charts (planned)\u003c/li\u003e\n  \u003cli\u003ePie charts (planned)\u003c/li\u003e\n  \u003cli\u003eRose charts (planned)\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch3\u003eLicense\u003c/h3\u003e\n\nThis project is licensed under the MIT License but please create pull requests to improve this package together rather that copying itto another project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjaxho%2Fpure-vue-chart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjaxho%2Fpure-vue-chart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjaxho%2Fpure-vue-chart/lists"}