0.3.8 • Published 8 years ago

@redsift/d3-rs-calendar-chart v0.3.8

Weekly downloads
24
License
MIT
Repository
github
Last release
8 years ago

d3-rs-calendar-chart

d3-rs-calendar-chart easily generate a single character icon.

Builds

Circle CI

Example

View @redsift/d3-rs-calendar-chart on Codepen

Usage

Browser

<script src="//static.redsift.io/reusable/d3-rs-calendar-chart/latest/d3-rs-calendar-chart.umd-es2015.min.js"></script>
<script>
	var chart = d3_rs_calendar_chart.html().lastWeeks(12);
	...
</script>

ES6

import { chart } from "@redsift/d3-rs-calendar-chart";
let eml = chart.html();
...

Require

var chart = require("@redsift/d3-rs-calendar-chart");
var eml = chart.html();
...

Parameters

NameDescriptionTransition
classedSVG custom classN
widthWidth of the calendarY
heightHeight of the calendarY
scaleScale of the calendarY
lastWeeksNumber of weeks in the past from nowY
nextWeeksNumber of weeks in the future from nowY
coloursColour palette for the data. Expected values green\|blue\|purple, or an array of RGB values e.g. ['#b0e288', ... ] preferably length >= 5Y
0.3.8

8 years ago

0.3.7

8 years ago

0.3.6

8 years ago

0.3.5

8 years ago

0.3.3

8 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago