Vuejs+D3 Zoomable Treemap
1018 |1019 |1021 |An implementation, updated to d3v4, in Vuejs, of the D3 Zoomable Treemap.
1020 |
Dependencies
1022 |Node.js (>=4.x, 6.x preferred) and npm version 3+.
1023 | 1024 |Build Setup
1025 |# install dependencies
1026 | npm install
1027 |
1028 | # serve with hot reload at localhost:8080
1029 | npm run dev
1030 |
1031 | # build for production with minification
1032 | npm run build
1033 |
1034 | # build for production and view the bundle analyzer report
1035 | npm run build --report
1036 |
1037 | # run unit tests
1038 | npm run unit
1039 |
1040 | # run e2e tests
1041 | npm run e2e
1042 |
1043 | # run all tests
1044 | npm test
1045 |
1046 |
1047 | Details
1048 |There’s only one component that matters, in src/components/Treemap.vue, and you can extract it and use it in your own projects. The source data is a JSON file in static/flare.json. If you prefer, you can use this build as a base for the project, which uses the vuejs-webpack template, containing a webpack + vue-loader setup with hot reload, linting, testing & css extraction.
1049 |For a detailed explanation on how things work with vue-cli, check out the guide and docs for vue-loader.
1050 |