D3fc Save

A collection of components that make it easy to build interactive charts with D3

Project README

D3FC Logo

Build status npm version

Components to rapidly build fast, highly customisable, interactive charts with D3

Installation

The latest release of D3FC is available via npm or the unpkg CDN. The D3FC project is composed of a number of separate packages each of which can be installed via npm and used independently, or if you prefer you can install the entire D3FC bundle, which includes all of the separate packages -

npm install d3fc
<script src="https://unpkg.com/d3"></script>
<script src="https://unpkg.com/d3fc"></script>

Test your installation using the simple chart example.

Documentation

The following getting-started guides are available -

  • Building a Chart - a walk through building a chart with D3FC and what makes it different from other libraries.
  • The Decorate Pattern - the pattern D3FC employs, resulting in charting components that are both simple and flexible.
  • Transitions - how to use D3 transitions with D3FC.

For API documentation see the corresponding package documentation -

Examples can be found on the project website. These same examples are also available offline.

Framework integration examples:

There are also a number of other documents and articles that provide a bit more background regarding the design principles of D3FC -

Developing

This project is a mono-repo that uses Lerna to manage dependencies between packages. To get started, run -

npm ci
npm test

When making changes to a package, you can execute the following either from within the package folder to build just that package or from the project root to build all packages -

npm run bundle

To open a development sandbox which is automatically updated when you save changes to source files, navigate to the project root and run -

npm start

CI

This project is equipped with a Continuous Integration (CI) pipeline using GitHub Actions. It runs a series of checks whenever a pull request to master is opened. The pipeline includes the following steps:

  • Build: Verify that the code can be successfully built.
  • Test: Tests the application to ensure that new changes do not introduce regressions.
  • Linting: The code is analyzed for adherence to coding standards and best practices, using eslint, markdownlint, and commitlint.

When opening a PR, be mindful of (and make necessary changes in accordance with) these checks.

Releases

Releases are managed via CI and semantic release.

License

These components are licensed under the MIT License.

Sponsors

Project supported by Scott Logic.

Open Source Agenda is not affiliated with "D3fc" Project. README Source: d3fc/d3fc
Stars
1,262
Open Issues
174
Last Commit
1 day ago
Repository
License
MIT
Homepage

Open Source Agenda Badge

Open Source Agenda Rating