DateFormat=mm/dd/yyyy
Define $now = //
Define $later = 
Period = from:01/01/2006 till:$later
Define $skip = at:end # Force a blank line
Define $dayunknown = 15 # what day to use if it's actually not known
ImageSize= width:1050 height:auto barincrement:22
TimeAxis = orientation:horizontal
PlotArea = right:4 left:0 bottom:100 top:5

Colors =
 id:bg value:white
 id:lightline value:rgb
 id:lighttext value:rgb
 id:mb1 value:rgb legend:MacBook
 id:mb2 value:rgb 
 id:mb3 value:rgb legend:MacBook_(Unibody)
 id:mbau value:rgb 
 id:mb4 value:rgb legend:MacBook_(Retina_and_USB-C)
 id:mba value:rgb legend:MacBook_Air
 id:mba2 value:rgb legend:MacBook_Air_(tapered_and_dual_USB)
 id:mba3 value:rgb legend:MacBook_Air_(Retina_and_Thunderbolt_3)
 id:mbp1 value:rgb legend:MacBook_Pro
 id:mbp2 value:rgb 
 id:mbp3 value:rgb legend:MacBook_Pro_(Unibody)
 id:mbp4 value:rgb 
 id:mbp5 value:rgb legend:MacBook_Pro_(Retina)
 id:mbp6 value:rgb legend:MacBook_Pro_(Thunderbolt_3)
 id:mbp7 value:rgb legend:MacBook_Pro_(Magic_Keyboard)
 id:nmb1 value:rgb 
 id:current value:rgb legend:Reference/Still_currently_produced

BackgroundColors = canvas:bg
ScaleMajor = gridcolor:lighttext unit:year increment:1 start:01/01/2006
ScaleMinor = gridcolor:lightline unit:month increment:1 start:01/01/2006
Legend = orientation:vertical position:bottom columns:4

BarData = 
 barset:macbookair
 barset:macbook
 barset:macbookpro
 barset:null
 barset:reference

PlotData=
 width:15 textcolor:black shift: anchor:from fontsize:s
 barset:macbookair
 $skip
 $skip
 color:mba from:02/01/2008 till:10/19/2010 text:"MacBook Air 13''"
 barset:break
 color:mba2 from:10/20/2010 till:10/27/2016 text:"MacBook Air 11'' (tapered)"
 color:mb4 from:03/09/2015 till:07/09/2019 text:"MacBook 12'' (Retina)"
 color:mba2 from:10/20/2010 till:07/09/2019 text:"MacBook Air 13'' (tapered)"
 barset:break
 $skip
 $skip
 $skip
 color:mba3 from:10/30/2018 till:$now text:"MacBook Air 13'' (Retina)"
 barset:break
 $skip
 $skip
 $skip
 color:current from:$now till:end

 barset:macbook
 color:mb1 from:05/16/2006 till:10/20/2009 text:"MacBook"
 barset:break
 color:mb3 from:10/20/2009 till:07/20/2011 text:"MacBook (plastic Unibody)"
 barset:macbookpro
 $skip
 $skip
 $skip
 color:mbp1 from:02/14/2006 till:10/14/2008 text:"MacBook Pro 15''"
 $skip
 color:mbp1 from:04/24/2006 till:01/06/2009 text:"MacBook Pro 17''"
 barset:break
 color:mb3 from:10/14/2008 till:06/08/2009 text:"MacBook (aluminum)"
 barset:break
 $skip
 color:mbp3 from:06/08/2009 till:10/27/2016 text:"MacBook Pro 13'' (Unibody)"
 $skip
 color:mbp3 from:10/14/2008 till:10/22/2013 text:"MacBook Pro 15'' (Unibody)"
 $skip
 color:mbp3 from:01/06/2009 till:06/09/2012 text:"MacBook Pro 17'' (Unibody)"
 barset:break
 $skip
 $skip
 color:mbp5 from:10/23/2012 till:06/05/2017 text:"MacBook Pro 13'' (Retina)"
 $skip
 color:mbp5 from:06/09/2012 till:07/12/2018 text:"MacBook Pro 15'' (Retina)"
 barset:break
 color:mbp6 from:10/27/2016 till:05/04/2020 text:"MacBook Pro 13'' (two TB3 ports)"
 $skip
 $skip
 color:mbp6 from:11/15/2016 till:05/04/2020 text:"MacBook Pro 13'' (four TB3 ports)"
 $skip
 color:mbp6 from:11/15/2016 till:11/13/2019 text:"MacBook Pro 15'' (four TB3 ports)"
 barset:break
 color:mbp7 from:05/04/2020 till:$now text:"MacBook Pro 13''"
 $skip
 $skip
 color:mbp7 from:05/04/2020 till:$now text:"MacBook Pro 13''"
 $skip
 color:mbp7 from:11/13/2019 till:$now text:"MacBook Pro 16''"
 barset:break
 color:current from:$now till:end
 $skip
 $skip
 color:current from:$now till:end
 $skip
 color:current from:$now till:end

 barset:reference
 color:lightline from:start till:06/29/2007
 barset:break
 at:08/07/2006 mark:
 barset:break
 color:lightline from:08/07/2006 till:06/29/2007 text:"Mac Pro"
 barset:break
 at:06/29/2007 mark:
 barset:break
 color:lightline from:06/29/2007 till:04/03/2010 text:"iPhone"
 barset:break
 at:04/03/2010 mark:
 barset:break
 color:lightline from:04/03/2010 till:04/24/2015 text:"iPad"
 barset:break
 at:04/24/2015 mark:
 barset:break
 color:lightline from:04/24/2015 till:11/11/2015 text:"Watch"
 barset:break
 at:11/11/2015 mark:
 barset:break
 color:lightline from:11/11/2015 till:12/14/2017 text:"iPad Pro"
 barset:break
 at:12/14/2017 mark:
 barset:break
 color:lightline from:12/14/2017 till:10/30/2019 text:"iMac Pro"
 barset:break
 at:10/30/2019 mark:
 barset:break
 color:lightline from:10/30/2019 till:end text:"AirPods Pro"