Skip to content

Chart.js Box and Violin Plot within Angular 7 CLI environment

Notifications You must be signed in to change notification settings

sluger/ng-chartjs-boxplot

Repository files navigation

NgChartjsBoxplot

This demonstration repository is based on the codesandbox example by sgratzl's.

It demonstrates the usage of the Chart.js Box and Violin Plot plugin within the Angular 7 environment.

Global npm modules

  • npm@6.7.0
  • node@8.15.1
  • @angular/cli@7.3.8

Dependencies

  • chart.js@2.7.2
  • chartjs-chart-box-and-violin-plot@1.4.1
  • angular2-chartjs@0.5.1

Note: Please import the boxplot plugin as .js or .min.js file instead of the .mjs default.

image

This project was generated with Angular CLI version 7.3.8.

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.