@phronesyss/bar-chart
This is the first part of the admetricks challenge, that consist on creating two components:
407
| Install | |
|---|---|
npm install @phronesyss/bar-chart |
|
| Latest Version: | 0.0.12 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | May 3, 2022 |
| Links: | GitHub · npm |
Maintainer: phronesyss
Admetricks challenge
This is the first part of the admetricks challenge, that consist on creating two components:
- Responsive landing page
- D3 chart
-
AngularJS Microfront
The idea is to incorporate this components into an AngularJS App as a single-spa, containing the Vue app as a component with views... But I couldn't do the AngularJs part because of time, I spend quite a while on learning D3, and I did enjoy it
Demo
To run this project
To compile use Node v16 or newer
git clone https://github.com/phronesys/admetricks-challenge-vue
cd admetricks-challenge-vue && npm i && npm run dev
Will open the app in http://localhost:3000 on the landing page, click on any of the buttons in there or add /chart to the url to see the d3 chart.
Tools used
- vue 3 (script setup)
- vueuse
- vue-router
- typescript
- vitest (similar to jest with hmr)
- tailwindcss
- D3
Reference D3
- https://www.digitalocean.com/community/tutorials/getting-started-with-data-visualization-using-javascript-and-the-d3-library
- https://youtu.be/TOJ9yjvlapY
- https://stackoverflow.com/questions/63720976/d3-v5-center-path-line-in-a-bar-graph
- https://observablehq.com/@d3/learn-d3-scales?collection=@d3/learn-d3
- https://stackoverflow.com/questions/46976677/d3-typescript-set-element-to-an-attribute-of-the-path-element
and much more stackoverflow... I should have used this 😳 https://c3js.org/examples.html
Related Packages
vue-bar-graph
Simple and lightweight Vue chart svg component without chart library dependencie...
274,067
6
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.0.12 | ^3.2.25 | MIT | |
| 0.0.11 | ^3.2.25 | MIT | |
| 0.0.10 | ^3.2.25 | MIT | |
| 0.0.9 | ^3.2.25 | MIT | |
| 0.0.8 | ^3.2.25 | MIT | |
| 0.0.7 | ^3.2.25 | MIT | |
| 0.0.6 | ^3.2.25 | MIT | |
| 0.0.5 | ^3.2.25 | MIT | |
| 0.0.4 | ^3.2.25 | MIT | |
| 0.0.3 | ^3.2.25 | MIT | |
| 0.0.2 | ^3.2.25 | MIT | |
| 0.0.1 | ^3.2.25 | MIT | |
| 0.0.0 | ^3.2.25 | MIT |