Skip to content

D3 graph displayed in web components frontend (HTML/CSS/JS + LitElements setup using open-wc)

License

Notifications You must be signed in to change notification settings

GerardPi/simple-d3-graph-with-lit-element

Repository files navigation

Lit application based on open-wc with d3 graph

1. Introduction

This application was initialized using npm init @open-wc. Then, instructions from Pluralsight course Build your first data visualisation with D3 were used to build the D3 graph in a separate web component.

This application was built using web components using LitElement to make that easier.

2. Quickstart

To get started:
  1. Install node (which includes npm), and make sure that you have it available from your command line.

    • Note that this application was created using node v14.15.0 and npm 6.14.8. Other versions might work.

  2. Clone this repository

  3. From a command line, run:

    1. npm install to install all dependencies

    2. npm run start to run a local dev server

  4. Load localhost:8000 in a browser

Have look add the scripts section in package.json for more stuff that you can run using npm run …​.

3. References

What are web components
Working with web components
Graphics library
The document that you’re now reading was created using

About

D3 graph displayed in web components frontend (HTML/CSS/JS + LitElements setup using open-wc)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published