{"id":29035039,"url":"https://github.com/lirael/vuejs-d3-uxgraph","last_synced_at":"2025-06-26T12:02:56.793Z","repository":{"id":57389474,"uuid":"87711753","full_name":"lirael/vuejs-d3-uxgraph","owner":"lirael","description":"Vue / D3 UX graphs components","archived":false,"fork":false,"pushed_at":"2017-04-11T14:10:44.000Z","size":687,"stargazers_count":19,"open_issues_count":3,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-31T10:30:05.725Z","etag":null,"topics":["d3-visualization","d3v4","graph","ux","ux-graph","vue","vue-components","vuejs","vuejs2"],"latest_commit_sha":null,"homepage":"","language":"Vue","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/lirael.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-04-09T13:48:37.000Z","updated_at":"2024-02-27T05:01:46.000Z","dependencies_parsed_at":"2022-09-19T01:31:33.167Z","dependency_job_id":null,"html_url":"https://github.com/lirael/vuejs-d3-uxgraph","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lirael/vuejs-d3-uxgraph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lirael%2Fvuejs-d3-uxgraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lirael%2Fvuejs-d3-uxgraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lirael%2Fvuejs-d3-uxgraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lirael%2Fvuejs-d3-uxgraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lirael","download_url":"https://codeload.github.com/lirael/vuejs-d3-uxgraph/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lirael%2Fvuejs-d3-uxgraph/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261953199,"owners_count":23235453,"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":["d3-visualization","d3v4","graph","ux","ux-graph","vue","vue-components","vuejs","vuejs2"],"created_at":"2025-06-26T12:01:33.258Z","updated_at":"2025-06-26T12:02:56.782Z","avatar_url":"https://github.com/lirael.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n   \u003cimg width=\"256\" heigth=\"256\" src=\"https://github.com/lirael/vuejs-d3-uxgraph/blob/master/src/assets/uxgraph.png?raw=true\" alt=\"uxgraph logo\"\u003e\n\u003c/div\u003e\n\n# ux-graph\n\n\u003e Vue wrapper for d3.js predesigned somponents\n\n\u003e *Please,note:* library is still in the development mode!!!\n\n## Live demo and code example\n\n- Demo: https://lirael.github.io/vuejs-d3-uxgraph-demo/\n- Code: https://github.com/lirael/vuejs-d3-uxgraph-demo/\n\n## Principles used to design the graphs\n\nAll designs are based on recommendations of Stephen Few described in a book \"Information Dashboard Design\".\n\n## How to use with npm \n\n[![NPM](https://nodei.co/npm/ux-graph.png?downloads=true\u0026downloadRank=true)](https://nodei.co/npm/ux-graph/)\n\nFirstly you need to create Vue wrapper component. Exaple of `SparklinesBase.vue`:\n\n```javascript\n\u003ctemplate\u003e\n  \u003cdiv class=\"svg-container\" id=\"sCanvas\"\u003e\u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nimport { Sparklines } from 'ux-graph'\n\n  export default Sparklines.extend({\n    mounted () {\n      // Overwriting base render method with actual data\n      this.createSparkline('#sCanvas', this.data, this.label, this.circle, this.color)\n    }\n  })\n\u003c/script\u003e\n```\nThen in other your components you can sumply use it as follows:\n\n```javascript\nimport Sparklines from './SparklinesBase.vue'\nexport default {\n  name: 'SparklinesContainer',\n  components: {\n    'sparklines': Sparklines\n  }\n  [...]\n```\n\nand call it anywhere in the template using:\n```\n\u003csparklines\u003e \u003c/sparklines\u003e\n```\n\n## Manual integration\n\nIf you want to integrate some component manualy, and not via `npm`, it is needed to import components with a needed graph (graph components are located in `src/components/`. Then you can use it as usual Vue instance, and pass custom parameters when needed. Though `npm` usage is strongly recommended.\n\n```javascript\nimport barcharts from './Barcharts.vue'\nexport default {\n  name: 'barcharts',\n  components: {\n    'barcharts': barcharts\n  }\n[...]\n```\n\nAnd to use it in a template:\n```javascript\n\u003cbarcharts\n    colorOne=\"#4682B4\" \n    labelOne=\"Success\" \n    colorTwo=\"#d3d3d3\" \n    labelTwo=\"Fail\"\u003e\n\u003c/barcharts\u003e\n```\n\nResult is as follows:\n\n\u003cdiv align=\"center\"\u003e\n   \u003cimg width=\"300\" src=\"https://github.com/lirael/vuejs-d3-uxgraph/blob/master/src/assets/bar.png?raw=true\" alt=\"uxgraph logo\"\u003e\n\u003c/div\u003e\n\n## Available graphs\nMore graphs would be added during the next stage\n\n### Sparklines\n\u003cdiv align=\"center\"\u003e\n   \u003cimg width=\"300\" src=\"https://github.com/lirael/vuejs-d3-uxgraph/blob/master/src/assets/sparklines.png?raw=true\" alt=\"uxgraph logo\"\u003e\n\u003c/div\u003e\n\n### Line chart\n\u003cdiv align=\"center\"\u003e\n   \u003cimg width=\"300\" src=\"https://github.com/lirael/vuejs-d3-uxgraph/blob/master/src/assets/line.png?raw=true\" alt=\"uxgraph logo\"\u003e\n\u003c/div\u003e\n\n### Vertical Bar charts\n\u003cdiv align=\"center\"\u003e\n   \u003cimg width=\"300\" src=\"https://github.com/lirael/vuejs-d3-uxgraph/blob/master/src/assets/bar.png?raw=true\" alt=\"uxgraph logo\"\u003e\n\u003c/div\u003e\n\n### Horizontal Bar charts\n\u003cdiv align=\"center\"\u003e\n   \u003cimg width=\"300\" src=\"https://github.com/lirael/vuejs-d3-uxgraph/blob/master/src/assets/hbars.png?raw=true\" alt=\"uxgraph logo\"\u003e\n\u003c/div\u003e\n\n## Contributing\n\n1. Fork it ( https://github.com/lirael/vuejs-d3-uxgraph/fork )\n2. Create new branch for your feature (`git checkout -b new-feature`)\n3. Commit your changes (`git commit -m 'Feature description'`)\n4. Push to the branch (`git push origin new-feature`)\n5. Create a new Pull Request\n\nThanks!\n\n## License\n\nThis software is distributed under [MIT license](LICENSE).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flirael%2Fvuejs-d3-uxgraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flirael%2Fvuejs-d3-uxgraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flirael%2Fvuejs-d3-uxgraph/lists"}