Skip to content

Repository files navigation

Description

A simple PoC where integrate the regl-scatterplot component in a Angular project

Integrating steps

Install component in angular project

$ npm install regl-scatterplot --save

Install d3-scale types

npm install @types/d3-scale --save-dev

Clone the repo regl-scatterplot component

$ git clone https://github.com/flekschas/regl-scatterplot/tree/master

Compile the library to be used in typescript

$ npm run build-library

Copy dist folder generated inside the component folder into your angular project with the last build prepared for typescript

$ rm $HOME/git/poc-regl-scatterplot-angular/node_modules/regl-scatterplot/dist -R

$ cp ./dist $HOME/git/poc-regl-scatterplot-angular/node_modules/regl-scatterplot -R

Avoid comonjs warning in your angular project adding this line to your angular.json file inside build json tag:

"allowedCommonJsDependencies": [ "regl" ]

Start your angular project

$ npm run start

Build your angular project

$ npm run build

Scatter Plot Sample

About

PoC integrating regl-scatterplot inside angular

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages