Skip to content

Simple patterns with code example to animate custom native web component charts without framework

License

Notifications You must be signed in to change notification settings

jeremychone-channel/nwc-07-animated-charts

Repository files navigation

Best practice to build Animated Chart with Native Web Components, Canvas, JavaScript/TypeScript, and d3-shape/d3-ease. No Framework, No Chart Library.

Technology: Typescript | postcss | rollup | native web components | dom-native library (<7kb gzip, < 17 min.js)

THE DOM IS THE FRAMEWORK - ZERO IE TAX | ZERO VIRTUAL DOM | ZERO FRAMEWORK

Install & Run

git clone https://github.com/jeremychone-channel/nwc-07-animated-charts.git
cd nwc-07-animated-charts/

# make it yours
rm -Rf .git

# install the dependencies
npm install

# build and start REPL development 
npm run watch

# (should open http://localhost:8888/index.html in your default browser)

Start coding

After npm run watch for live coding:

  • pcss/main.pcss and its imports gets recompiled as dist/app-bundle.pcss
  • src/**/*.ts files get re-compiled as dist/app-bundle.js
  • design.sketch if present and if has sketch installed, generates svg/sprite.svg and pcss.var-colors.pcss

About

Simple patterns with code example to animate custom native web component charts without framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published