All Projects → visjs → Vis Timeline

visjs / Vis Timeline

Licence: other
📈 Create a fully customizable, interactive timelines and 2d-graphs with items and ranges.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Vis Timeline

Arcchartview
Arc Chart View (Draw Creative Statistic Arc Charts)
Stars: ✭ 96 (-85.32%)
Mutual labels:  hacktoberfest, chart
Vue Morris
VueJS component wrapping Morris.js
Stars: ✭ 212 (-67.58%)
Mutual labels:  hacktoberfest, chart
Npmcharts.com
Compare npm package downloads over time
Stars: ✭ 129 (-80.28%)
Mutual labels:  hacktoberfest, chart
D3 Timeline
A simple D3 Timeline chart
Stars: ✭ 743 (+13.61%)
Mutual labels:  chart, timeline
flame-chart-js
Component for incredibly fast viewing of flame charts
Stars: ✭ 28 (-95.72%)
Mutual labels:  chart, timeline
Timeline Plus
Timeline - chronological visualization of your data
Stars: ✭ 140 (-78.59%)
Mutual labels:  chart, timeline
V Chart Plugin
Easily bind a chart to the data stored in your Vue.js components.
Stars: ✭ 188 (-71.25%)
Mutual labels:  hacktoberfest, chart
Scale
Angular plugin for creating charts
Stars: ✭ 39 (-94.04%)
Mutual labels:  chart, timeline
chartjs-chart-timeline
Google-like timeline chart for Chart.js.
Stars: ✭ 44 (-93.27%)
Mutual labels:  chart, timeline
jquery-linechart
JQuery plugin for creating charts
Stars: ✭ 42 (-93.58%)
Mutual labels:  chart, timeline
Vis Graph3d
📊 Create interactive, animated 3d graphs. Surfaces, lines, dots and block styling out of the box.
Stars: ✭ 129 (-80.28%)
Mutual labels:  hacktoberfest, chart
Ngx Charts
📊 Declarative Charting Framework for Angular
Stars: ✭ 4,057 (+520.34%)
Mutual labels:  hacktoberfest, chart
Chart.js
Simple HTML5 Charts using the <canvas> tag
Stars: ✭ 55,646 (+8408.56%)
Mutual labels:  hacktoberfest, chart
Fl chart
A powerful Flutter chart library, currently supporting Line Chart, Bar Chart, Pie Chart, Scatter Chart and Radar Chart.
Stars: ✭ 3,882 (+493.58%)
Mutual labels:  hacktoberfest, chart
Rollup Plugin Visualizer
📈⚖️ Visuallize your bundle
Stars: ✭ 405 (-38.07%)
Mutual labels:  hacktoberfest, chart
Puppetboard
Web frontend for PuppetDB
Stars: ✭ 643 (-1.68%)
Mutual labels:  hacktoberfest
Sulu
Core framework that implements the functionality of the Sulu content management system
Stars: ✭ 645 (-1.38%)
Mutual labels:  hacktoberfest
Financialcustomerview
各种金融类的自定义View,基金走势图、分时图、蜡烛图、各种指标等,一步一步构建庞大的基金自定View...
Stars: ✭ 642 (-1.83%)
Mutual labels:  chart
Useeffectreducer
useReducer + useEffect = useEffectReducer
Stars: ✭ 642 (-1.83%)
Mutual labels:  hacktoberfest
Docs
CakePHP CookBook
Stars: ✭ 653 (-0.15%)
Mutual labels:  hacktoberfest

vis-timeline

example chart

The Timeline/Graph2D is an interactive visualization chart to visualize data in time. The data items can take place on a single date, or have a start and end date (a range). You can freely move and zoom in the timeline by dragging and scrolling in the Timeline. Items can be created, edited, and deleted in the timeline. The time scale on the axis is adjusted automatically, and supports scales ranging from milliseconds to years.

Badges

GitHub contributors GitHub stars

Backers on Open Collective Sponsors on Open Collective

Install

Install via npm:

$ npm install vis-timeline

Example

A basic example on loading a Timeline is shown below. More examples can be found in the examples directory of the project.

<!doctype html>
<html>
<head>
  <title>Timeline</title>
  <script type="text/javascript" src="//unpkg.com/[email protected]/standalone/umd/vis-timeline-graph2d.min.js"></script>
  <link href="//unpkg.com/[email protected]/styles/vis-timeline-graph2d.min.css" rel="stylesheet" type="text/css" />
  <style type="text/css">
    #visualization {
      width: 600px;
      height: 400px;
      border: 1px solid lightgray;
    }
  </style>
</head>
<body>
<div id="visualization"></div>
<script type="text/javascript">
  // DOM element where the Timeline will be attached
  var container = document.getElementById('visualization');

  // Create a DataSet (allows two way data-binding)
  var items = new vis.DataSet([
    {id: 1, content: 'item 1', start: '2014-04-20'},
    {id: 2, content: 'item 2', start: '2014-04-14'},
    {id: 3, content: 'item 3', start: '2014-04-18'},
    {id: 4, content: 'item 4', start: '2014-04-16', end: '2014-04-19'},
    {id: 5, content: 'item 5', start: '2014-04-25'},
    {id: 6, content: 'item 6', start: '2014-04-27', type: 'point'}
  ]);

  // Configuration for the Timeline
  var options = {};

  // Create a Timeline
  var timeline = new vis.Timeline(container, items, options);
</script>
</body>
</html>

Builds

There are four builds provided at the moment.

Standalone build

<script
  type="text/javascript"
  src="https://unpkg.com/[email protected]/standalone/umd/vis-timeline-graph2d.min.js"
></script>
import { Timeline } from "vis-timeline/standalone";

This has no dependencies and therefore is great for things like MWEs but has more issues with interoperability and bundle bloat. For more information see the following example.

Peer build

<script
  type="text/javascript"
  src="https://unpkg.com/[email protected]/peer/umd/vis-timeline-graph2d.min.js"
></script>
import { Timeline } from "vis-timeline/peer";

For this build to work you have to load Vis Data and Moment (including locales except English) packages yourself. The advantage here is that it works well with other packages. For more information see the following example.

ESNext build

<script
  type="text/javascript"
  src="https://unpkg.com/[email protected]/esnext/umd/vis-timeline-graph2d.min.js"
></script>
import { Timeline } from "vis-timeline/esnext";

This is the same as the peer build but without any bundled dependencies or pollyfills. It's indented to be used with bundlers like Rollup or Webpack which will fetch the dependencies, prevent duplicate dependencies in the bundle, use transpilers to add necessary polyfills etc.

Legacy build

<script
  type="text/javascript"
  src="https://unpkg.com/[email protected]/dist/vis-timeline-graph2d.min.js"
></script>
import { Timeline } from "vis-timeline";

This is solely kept for backwards compatibility. It is deprecated and will be removed in case of URLs and replaced by the peer build in case of Node.js/bundlers. Don't use this, please.

Build

To build the library from source, clone the project from github

$ git clone git://github.com/visjs/vis-timeline.git

The source code uses the module style of node (require and module.exports) to organize dependencies. To install all dependencies and build the library, run npm install in the root of the project.

$ cd vis-timeline
$ npm install

Then, the project can be build running:

$ npm run build

Excluding external dependencies

External dependencies such as moment, hammerjs can be excluded in the build by running:

$ npm run build -- -e [comma separated module names]

Example:

$ npm run build -- -e moment,hammerjs

Test

To test the library, install the project dependencies once:

$ npm install

Then run the tests:

$ npm run test

Contribute

Contributions to the vis.js library are very welcome! We can't do this alone!

Backers

Thank you to all our backers! 🙏

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website.

License

Copyright (c) 2014-2017 Almende B.V. and contributors Copyright (c) 2017-2019 vis.js contributors

This work is dual-licensed under Apache-2.0 and MIT. You can choose between one of them if you use this work.

SPDX-License-Identifier: Apache-2.0 OR MIT

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].