Skip to content

Latest commit

 

History

History
59 lines (37 loc) · 2.77 KB

README.md

File metadata and controls

59 lines (37 loc) · 2.77 KB

PivotTest

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:

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:

  1. node_modules/jquery/dist/jquery.min.js
  2. node_modules/jquery-ui-dist/jquery-ui.min.js (only for pivotUI)
  3. node_modules/plotly.js-dist/plotly.js
  4. node_modules/pivottable/dist/pivot.min.js
  5. node_modules/pivottable/dist/export_renderers.min.js
  6. node_modules/pivottable/dist/plotly_renderers.min.js (only for pivot charts)
  7. node_modules/pivottable/dist/tips_data.min.js (only contains test data)
  8. node_modules/subtotal/dist/subtotal.min.js

Also the following CSS files are required:

  1. node_modules/pivottable/dist/pivot.min.css
  2. 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.

Development server

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.

Code scaffolding

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.

Build

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.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.