Help:EasyTimeline syntax: Difference between revisions

Content deleted Content added
m Fixed links to #Text Input
PlotData: Added plot of the example that was given. Changed the example so that it actually works. For instance, changed colors from "AO" (etc.) to colors that are actually recognized. Corrected "<-- WW2 reaches Asia" to "<-- Attack on Pearl Harbor".
Line 590:
<small>Examples:</small>
<pre>
DateFormat = dd/mm/yyyy
Period = from:01/01/1939 till:02/09/1945
PlotData=
width:15
bar:Japan from:start till:19/02/1945 color:JT
bar:Japan from:1901/0209/19451939 till:1427/0309/19451940 color:AIgreen
bar:Japan from:0227/09/19451940 till:end 19/02/1945 color:AOyellow
bar:Japan from:19/02/1945 till:14/03/1945 color:blue
bar:Japan from:02/09/1945 till:end color:red
 
at:07/12/1941 shift:(0,-15) text:"<-- WW2Attack reacheson AsiaPearl Harbor"
</pre>
 
<timeline>
ImageSize = width:500 height:50
PlotArea = left:20 right:10 top:10 bottom:20
TimeAxis = orientation:horizontal
AlignBars = justify
DateFormat = dd/mm/yyyy
Period = from:01/01/1939 till:02/09/1945
ScaleMajor = grid:red unit:year increment:1 start:01/01/1939
ScaleMinor = grid:blue unit:month increment:1 start:01/01/1939
 
PlotData=
width:15
bar:Japan from:01/09/1939 till:27/09/1940 color:green
bar:Japan from:start 27/09/1940 till:19/02/1945 color:JTyellow
bar:Japan from:19/02/1945 till:14/03/1945 color:blue
bar:Japan from:02/09/1945 till:end color:red
 
at:07/12/1941 shift:(0,-15) text:"<-- Attack on Pearl Harbor"
</timeline>
 
==== Bar related attributes ====