This project was generated with Angular CLI version 8.3.19.
Deployment of Plotly Javascript library in other projects
This project has the following dependences:
- jQuery 3.4.1
- jQuery UI 1.12.1
- Plotly Javascript library (optional for pivot charts) 1.52.2
- Pivottable.js 2.23.0
- Subtotal plugin for Pivottable.js 1.11.0-alpha.0
For npm packages, please check dependences.txt
The the required javascript files and the required order in which they should be loaded is the following:
- node_modules/jquery/dist/jquery.min.js
- node_modules/jquery-ui-dist/jquery-ui.min.js (only for pivotUI)
- node_modules/plotly.js-dist/plotly.js
- node_modules/pivottable/dist/pivot.min.js
- node_modules/pivottable/dist/export_renderers.min.js
- node_modules/pivottable/dist/plotly_renderers.min.js (only for pivot charts)
- node_modules/pivottable/dist/tips_data.min.js (only contains test data)
- node_modules/subtotal/dist/subtotal.min.js
Also the following CSS files are required:
- node_modules/pivottable/dist/pivot.min.css
- node_modules/subtotal/dist/subtotal.min.css
For the implementation examples, please check src/app/app.component.ts .
For further information on the usage of Pivottable.js and Subtotal, please check their README.md files and their wikis, both in their own GitHub pages.
Other chart renderers such as D3.js, C3.js or Google Charts are shipped with Pivottable.js, but their respective Javascript plotting libraries should be installed as dependencies.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.