Test: Difference between revisions

From MassiveCraft Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
# All measures are in pixels
# All measures are in pixels


ImageSize  = width:1500 height:200
ImageSize  = width:1600 height:200
PlotArea  = left:100 right:100 bottom:130 top:20
PlotArea  = left:100 right:100 bottom:130 top:20
AlignBars  = justify
AlignBars  = justify


DateFormat = yyyy
DateFormat = yyyy
Period    = from:-50 till:300
Period    = from:-50 till:305
TimeAxis  = orientation:horizontal
TimeAxis  = orientation:horizontal
ScaleMajor = unit:year increment:5 start:-50
ScaleMajor = unit:year increment:5 start:-50
Line 14: Line 14:
# so shift texts up or down manually to avoid overlap
# so shift texts up or down manually to avoid overlap


Define $dx = 25 # shift text to right side of bar
Define $dx =-50 # shift text to right side of bar


PlotData=
PlotData=
   bar:Leaders color:lavender width:40 mark:(line,white) align:left fontsize:M
   bar:Leaders color:lavender width:40 mark:(line,white) align:left fontsize:M


   from:-14 till:36 shift:($dx,15)  text:Emperor Theon I
   from:-14 till:36 shift:($dx,0)  text:Emperor Theon I
  from:36 till:72 shift:($dx,0)  text:Emperor Alfred I
  from:72 till:104 shift:($dx,0)  text:Emperor Heinrich I
  from:104 till:156 shift:($dx,0)  text:Emperor Immanuel I
  from:156 till:170 shift:($dx,0)  text:Emperor Justinian I
 
  from:200 till:230 shift:($dx,0)  text:Emperor Harold I
  from:230 till:302 shift:($dx,0)  text:Emperor Justinian II
</timeline>
</timeline>

Revision as of 10:29, 20 May 2014

<timeline>

  1. All measures are in pixels

ImageSize = width:1600 height:200 PlotArea = left:100 right:100 bottom:130 top:20 AlignBars = justify

DateFormat = yyyy Period = from:-50 till:305 TimeAxis = orientation:horizontal ScaleMajor = unit:year increment:5 start:-50

  1. there is no automatic collision detection,
  2. so shift texts up or down manually to avoid overlap

Define $dx =-50 # shift text to right side of bar

PlotData=

 bar:Leaders color:lavender width:40 mark:(line,white) align:left fontsize:M
 from:-14 till:36 shift:($dx,0)   text:Emperor Theon I
 from:36 till:72 shift:($dx,0)   text:Emperor Alfred I
 from:72 till:104 shift:($dx,0)   text:Emperor Heinrich I
 from:104 till:156 shift:($dx,0)   text:Emperor Immanuel I
 from:156 till:170 shift:($dx,0)   text:Emperor Justinian I
 from:200 till:230 shift:($dx,0)   text:Emperor Harold I 
 from:230 till:302 shift:($dx,0)   text:Emperor Justinian II 

</timeline>