@@ -94,15 +94,21 @@ $(document).ready(function (){
9494// DOM element where the Timeline will be attached
9595var container = document . getElementById ( 'visualization' ) ;
9696
97+ // add your project here with the following format
98+ //
99+ // '<groupname> : [
100+ // { content:'<text>', start: <date>, end: <date>, py2:<true|false>},
101+ // ...
102+ // ]
97103var data = {
98104'cpython' :[
99105{ content :'Remaining Python 2.7 support' , start :Date . now ( ) , end :'2020-01-01' } ,
100106] ,
101- 'ipython ' :[
102- { content :'ipython 5.x LTS' , start :'2016-06-01' , end :'2019-06-01' , py2 :true } ,
103- { content :'ipython 6.x' , start :'2017-01-01' , end :'2018-01-01' } ,
104- { content :'ipython 7.x' , start :'2018-01-01' , end :'2019-06-12' } ,
105- { content :'ipython 8.x' , start :'2019-06-12' , end :'2020-06-01' } ,
107+ 'IPython ' :[
108+ { content :'IPython 5.x LTS' , start :'2016-06-01' , end :'2019-06-01' , py2 :true } ,
109+ { content :'IPython 6.x' , start :'2017-01-01' , end :'2018-01-01' } ,
110+ { content :'IPython 7.x' , start :'2018-01-01' , end :'2019-06-12' } ,
111+ { content :'IPython 8.x' , start :'2019-06-12' , end :'2020-06-01' } ,
106112] ,
107113'matplotlib' :[
108114{ content :'matplotlib 2.x' , start :'2015-06-01' , end :'2018-06-01' , py2 :true } ,
@@ -123,8 +129,8 @@ $(document).ready(function (){
123129
124130
125131var groups = new vis . DataSet ( ) ;
126- g = 0 ;
127- i = 0 ;
132+ var g = 0 ;
133+ var i = 0 ;
128134for ( var gname in data ) {
129135g ++ ;
130136groups . add ( { id :g , content :gname } ) ;
@@ -142,17 +148,14 @@ $(document).ready(function (){
142148var options = { } ;
143149
144150var options = {
145- groupOrder :'group' // groupOrder can be a property name or a sorting function
151+ groupOrder :'group'
146152} ;
147153
148154// Create a Timeline
149155var timeline = new vis . Timeline ( container , items , options ) ;
150156timeline . setGroups ( groups ) ;
151157timeline . setItems ( items ) ;
152158timeline . addCustomTime ( Date . parse ( '2020-01-01' ) )
153- window . groups = groups ;
154- window . items = items ;
155- window . timeline = timeline ;
156159
157160} ) ;
158161