Initializing
Liveweave
Web
expand_more
home
Home
data_object
CSS Explorer
arrow_outward
Palette
Color Explorer
arrow_outward
Polyline
Graphics Editor
arrow_outward
outbox_alt
Generative AI
arrow_outward
frame_source
Python Playground
New
arrow_outward
build
Tools
expand_more
restart_alt
Load "Hello Weaver!"
post_add
Generate Lorem ipsum...
code
Format HTML
code_blocks
Format CSS
data_object
Format JavaScript
library_add
Library
expand_more
A
Algolia JS
Animate CSS
Apex Charts JS
B
Bulma CSS
Bootstrap
C
Chart JS
Chartist
Create JS
D
D3
Dojo
F
Foundation
Fullpage JS
G
Granim JS
Google Charts
H
Halfmoon
J
jQuery
M
Materialize
Moment JS
Masonry JS
Milligram CSS
P
Pure CSS
Primer CSS
Popper JS
Pattern CSS
Picnic CSS
R
React JS
Raphael JS
Raisin CSS
S
Semantic UI
Skeleton CSS
Spectre CSS
Tachyons CSS
T
Tailwind
Three JS
U
UI Kit
Vis JS
W
Water CSS
download
Download
expand_more
developer_mode
Download as HTML
folder_zip
Download as .ZIP
cloud_upload
Save
account_circle
Login
settings
Settings
expand_more
14
px
Live mode
Night mode
Line number
Mini map
Word wrap
sync_alt
Reset Settings
smart_display
Run
<script type="text/javascript" src="//d3js.org/d3.v3.min.js"></script> <script type="text/javascript" src="//cdn.jsdelivr.net/cal-heatmap/3.3.10/cal-heatmap.min.js"></script> <link rel="stylesheet" href="//cdn.jsdelivr.net/cal-heatmap/3.3.10/cal-heatmap.css" /> <style media="screen"> .subdomain-text { font-size: 14px; fill: #999; pointer-events: none } </style> <style type="text/css"> tr.description td:first-child, { font-weight: bolder !important; } </style> <div class="jumbotron"> <div class="container"> <h1> </h1> <small></small> </div> </div> <div class="container"> <div class="row"> <div id="cal-heatmap"></div> <div id="cal-heatmap-placeholder"></div> <script type="text/javascript"> </script> </div> </div>
.lw { font-size: 60px; }
var cal = new CalHeatMap(); cal.init({ itemSelector: "#cal-heatmap", start: new Date(2018, 5), data: datas, domain: "month", subDomain: "day", cellSize: 30, // verticalOrientation: true, cellPadding: 5, subDomainTitleFormat: { filled: '{count}', }, subDomainTextFormat: "%d", range: 4, domainGutter: 20, subDomainTextFormat: "%d", // displayLegend: false legend: [10, 20, 30, 40, 50], itemName: "completed course", legendColors: { empty: "#ededed", min: "#40ffd8", max: "#f20013" }, onClick: function(date, nb) {/88kQBw $("#cal-heatmap-placeholder").html("You just clicked <br/>on <b>" + date + "</b> <br/>with <b>" + (nb === null ? "unknown" : nb) + "</b> completed course" ); }, domainLabelFormat: "%m-%Y" // legendColors: ["#ecf5e2", "#232181"] });