All Projects → DKirwan → Calendar Heatmap

DKirwan / Calendar Heatmap

Licence: mit
A d3 heatmap for representing time series data similar to github's contribution chart

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to Calendar Heatmap

Reaviz
📊 Data visualization library for React based on D3
Stars: ✭ 215 (-89.17%)
Mutual labels:  data-visualization, heatmap, d3
D3
This is the repository for my course, Learning Data Visualization with D3.js on LinkedIn Learning and Lynda.com.
Stars: ✭ 64 (-96.78%)
Mutual labels:  data-visualization, d3
Victory Pie
D3 pie & donut chart component for React
Stars: ✭ 61 (-96.93%)
Mutual labels:  data-visualization, d3
Dex
Dex : The Data Explorer -- A data visualization tool written in Java/Groovy/JavaFX capable of powerful ETL and publishing web visualizations.
Stars: ✭ 1,238 (-37.63%)
Mutual labels:  data-visualization, d3
D4
Data-Driven Declarative Documents
Stars: ✭ 797 (-59.85%)
Mutual labels:  data-visualization, d3
Semiotic Docs
Docs for using Semiotic
Stars: ✭ 22 (-98.89%)
Mutual labels:  data-visualization, d3
Ac D3
Javascript Library for building Audiovisual Charts in D3
Stars: ✭ 76 (-96.17%)
Mutual labels:  data-visualization, d3
Heatmap.js
🔥 JavaScript Library for HTML5 canvas based heatmaps
Stars: ✭ 5,685 (+186.4%)
Mutual labels:  data-visualization, heatmap
D3vue
A D3 Plugin for VueJS
Stars: ✭ 87 (-95.62%)
Mutual labels:  data-visualization, d3
C3
📊 A D3-based reusable chart library
Stars: ✭ 9,163 (+361.61%)
Mutual labels:  data-visualization, d3
Victory Native
victory components for react native
Stars: ✭ 2,013 (+1.41%)
Mutual labels:  data-visualization, d3
D3 Id3
iD3: an Integrated Development Environment for D3.js
Stars: ✭ 789 (-60.25%)
Mutual labels:  data-visualization, d3
React Plotly.js
A plotly.js React component from Plotly 📈
Stars: ✭ 701 (-64.69%)
Mutual labels:  data-visualization, d3
Tracegraph
A JavaScript library for plotting graphs of traceroute or similar data
Stars: ✭ 44 (-97.78%)
Mutual labels:  data-visualization, d3
Party Mode
An experimental music visualizer using d3.js and the web audio api.
Stars: ✭ 690 (-65.24%)
Mutual labels:  data-visualization, d3
Reaviz
📊 Data visualization library for React based on D3
Stars: ✭ 1,141 (-42.52%)
Mutual labels:  data-visualization, heatmap
Just Dashboard
📊 📋 Dashboards using YAML or JSON files
Stars: ✭ 1,511 (-23.88%)
Mutual labels:  data-visualization, d3
Historical Ranking Data Visualization Based On D3.js
这是一个数据可视化项目,能够将历史数据排名转化为动态柱状图图表
Stars: ✭ 4,649 (+134.21%)
Mutual labels:  data-visualization, d3
D3 Node
Server-side D3 for static chart/map generation ✨📊
Stars: ✭ 606 (-69.47%)
Mutual labels:  data-visualization, d3
Victory
A collection of composable React components for building interactive data visualizations
Stars: ✭ 9,248 (+365.89%)
Mutual labels:  data-visualization, d3

This project is not actively maintained

D3 Calendar Heatmap

A d3.js heatmap representing time series data. Inspired by Github's contribution chart

Reusable D3.js Calendar Heatmap chart

Configuration

Property Usage Default Required
data Chart data none yes
selector DOM selector to attach the chart to body no
max Maximum count max found in data no
startDate Date to start heatmap at 1 year ago no
colorRange Minimum and maximum chart gradient colors ['#D8E6E7', '#218380'] no
tooltipEnabled Option to render a tooltip true no
tooltipUnit Unit to render on the tooltip, can be object for pluralization control 'contributions' no
legendEnabled Option to render a legend true no
onClick callback function on day click events (see example below) null no
locale Object to translate every word used, except for tooltipUnit see below no

Default locale object

{
    months: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
    days: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
    No: 'No',
    on: 'on',
    Less: 'Less',
    More: 'More'
}

Dependencies

Usage

1: Add d3.js and moment.js

2: Include calendar-heatmap.js and calendar-heatmap.css <link rel="stylesheet" type="text/css" href="path/tocalendar-heatmap.css"> <script src="path/to/calendar-heatmap.js"></script>

3: Format the data so each array item has a date and count property. As long as new Date() can parse the date string it's ok. Note - there all data should be rolled up into daily bucket granularity.

4: Configure the chart and render it

// chart data example
var chartData = [{
  date: valid Javascript date object,
  count: Number
}];
var chart1 = calendarHeatmap()
              .data(chartData)
              .selector('#chart-one')
              .colorRange(['#D8E6E7', '#218380'])
              .tooltipEnabled(true)
              .onClick(function (data) {
                console.log('onClick callback. Data:', data);
              });
chart1();  // render the chart

control unit pluralization

var chart1 = calendarHeatmap()
              .data(chartData)
              .tooltipUnit(
                [
                  {min: 0, unit: 'contribution'},
                  {min: 1, max: 1, unit: 'contribution'},
                  {min: 2, max: 'Infinity', unit: 'contributions'}
                ]
              );
chart1();  // render the chart

Pull Requests and issues

...are very welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].