Hi inprod I have done what you want
<!DOCTYPE HTML>
<html>
<head>
<title>Timeline | Basic demo</title>
<style type="text/css">
body, html {
font-family: sans-serif;
}
.red { color: red; }
</style>
<script src="[login to view URL]"></script>
<link href="[login to view URL]" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="visualization"></div>
<script type="text/javascript">
var groups = ([
{
id: 1,
content: 'Group 1'
// Optional: a field 'className', 'style'
},
{
id: 2,
content: 'Group 2'
// Optional: a field 'className', 'style'
},
{
id: 3,
content: 'Group 3'
// Optional: a field 'className', 'style'
}
// more groups...
]);
// DOM element where the Timeline will be attached
var container = [login to view URL]('visualization');
// Create a DataSet (allows two way data-binding)
var items = new [login to view URL]([
{id: 1,group:1, content: 'item 1', start: '2013-04-20'},
{id: 2,group:1, content: 'item 2', start: '2013-04-14'},
{id: 3,group:2, content: 'item 3', start: '2013-04-18'},
{id: 4, group:2,content: 'item 4', start: '2013-04-16', end: '2013-04-19'},
{id: 5, group:3, content: 'item 5', start: '2013-04-25'},
{id: 6, group:3, content: 'item 6', start: '2013-04-27'}
]);
// Configuration for the Timeline
var options = {};
// Create a Timeline
var timeline = new [login to view URL](container, items,groups, options);
</script>
</body>
</html>