Skip to content

qcrisw/d3ReusableCharts

Repository files navigation

d3ReusableCharts

Reusable D3 Charts for ActigraVis Dashboard

Features:

  • Legend Filtering - legends in chart toggle the series data plotted on all charts
  • Chart Resize - on window resize, the charts reload as per new container window size
  • Tooltip - more details are provided on hover over of tooltip
  • Scatterplot RectanglesOnHover - min-max and quartile rectangle on hover

Data Format: These d3 charts are designed for Actigravis. Taking in to consideration the features like Legend data filtering, the charts in this project take the following data format - which is a nested json array: [{ "key":"sleep", "color":"#3182bd", "values":[{"x":0,"y":54,"label":"LC_144"},{...},{...}], "group":true }]

Requirements:

  • d3 v4
  • jquery 3.3.1
  • http server
  • browser

Libraries such as d3 and jQuery are included as CDN (Download the required version and refer them locally. CDN is used for testing and are not recommended for production).

Download the repo, and set a http server to view the charts in your browser.

NOTE: For latest updates, include this repo as a submodule in any project by using following command: git submodule add https://github.com/qcrisw/d3ReusableCharts

And include the following command in README of your project repo, to clone the entire project along with the submodule: git submodule update --init --recursive

To update the submodule to recent commit, navigate to the submodule folder and type: 'git pull'

About

Reusable D3 Charts for ActigraVis Dashboard

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published