1.0.46 • Published 4 years ago
timecharts v1.0.46
Key Features
- No dependencies
- Fully responsive
- Easy to use
How To Use
Installation
Via NPM
Simply install the library:
npm i timecharts
In the Browser
Either use a CDN:
<script src="https://unpkg.com/timecharts@latest/dist/TimeCharts.min.js" type="text/javascript"></script>
Or download it locally:
<script src="./TimeCharts.min.js" type="text/javascript"></script>
Usage
const chart = new TimeCharts.Timeline("#container", {
scale: {
from: 7 * 60,
to: 19 * 60,
intervalStart: 0
},
data: {
timelines: [
{
label: "WORK",
colors: ["#7cd6fd", "#5e64ff"],
values: [{
start: 8 * 60,
length: 120,
title: "Project 1"
},
{
start: 11 * 60,
length: 45,
title: "Project 2"
},
{
start: 13 * 60,
length: 120,
title: "Project 1"
}]
},
{
label: "STUDY",
colors: ["#98d85b"],
values: [{
start: 10 * 60,
length: 60,
title: "Topic 1"
},
{
start: 15 * 60,
length: 90,
title: "Topic 1"
},
{
start: 16 * 60 + 45,
length: 90,
title: "Topic 1"
}]
}
],
},
padding: {
top: 50,
left: 50,
right: 50
}
});
Documentation
The full documentation can be found here.
License
MIT
1.0.46
4 years ago
1.0.45
4 years ago
1.0.44
4 years ago
1.0.43
4 years ago
1.0.40
4 years ago
1.0.42
4 years ago
1.0.41
4 years ago
1.0.39
5 years ago
1.0.38
5 years ago
1.0.37
5 years ago
1.0.36
5 years ago
1.0.35
5 years ago
1.0.34
5 years ago
1.0.33
5 years ago
1.0.32
5 years ago
1.0.31
5 years ago
1.0.30
5 years ago
1.0.29
5 years ago
1.0.28
5 years ago
1.0.27
5 years ago
1.0.26
5 years ago
1.0.25
5 years ago
1.0.24
5 years ago
1.0.23
5 years ago
1.0.22
5 years ago
1.0.21
5 years ago
1.0.20
5 years ago
1.0.19
5 years ago
1.0.18
5 years ago
1.0.17
5 years ago
1.0.16
5 years ago
1.0.15
5 years ago
1.0.14
5 years ago
1.0.13
5 years ago
1.0.12
5 years ago
1.0.11
5 years ago
1.0.10
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago