GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - geoblocks/d3-helper: D3 helper to draw and manage base of simple charts

This repository was archived by the owner on Nov 3, 2026. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

91 Commits
91 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
examples
examples
 
 
src
src
 
 
.gitignore
.gitignore
 
 
.prettierrc
.prettierrc
 
 
LICENCE
LICENCE
 
 
README.md
README.md
 
 
eslint.config.js
eslint.config.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 
vitest.config.ts
vitest.config.ts
 
 

Repository files navigation

d3-helper

Helper functions to create charts based on d3.

This library provides some classes and functions for common operations with the d3 library. It let you manage charts as you want.

Use the code in a project.

Simply use it through npm @geoblocks/d3-helper. See the examples for more informations on how to set the basics of your charts.

Overview

BaseD3ChartSVG

Class that provides functions to draw, clean and manage a SVG with a chart inside.

CartesianChart

  • Extends BaseD3ChartSVG.
  • Class that provides functions to manage cartesian charts (for bars, scatterplots, lines...)
  • Mainly manage the axes of cartesian charts.
  • Supported axes data types are: Date, number and text.

Supported browsers

The code was only tested on moderns browsers. The source is only transpiled to modern es. If your browser doesn't support the code, PR are welcome (updating your browser too).

Run the examples

git clone [email protected]:geoblocks/d3-helper.git
npm install
npm run build
npm run start

Examples are now accessible at http://localhost:1234/

Build the doc

npm run doc

Api doc is now accessible in folder apidoc

Publish a new version to npm

npm version [<newversion> | major | minor | patch
npm run build && npm publish && git push --tags origin master

Upcoming (probably):

  • Tooltips helpers for data.

About

D3 helper to draw and manage base of simple charts

Resources

Readme
BSD-3-Clause license
Activity
Custom properties

Stars

2 stars

Watchers

5 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.