Difference between revisions of "Template:Graph:BTS Skytrain ridership"
imported>Matthewmayer (add 2016 data using http://bts.listedcompany.com/misc/ar/20170621-bts-ar201617-en-02.pdf) |
imported>Matthewmayer (update graph to 2018) |
||
| Line 1: | Line 1: | ||
| − | {{Graph:Chart|width=400|height=200|xAxisTitle=|yAxisTitle=|type=rect|x=2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016|y= | + | {{Graph:Chart|width=400|height=200|xAxisTitle=|yAxisTitle=|type=rect|x=2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018|y=383635,361977,372551,386145,392376,458275,530422,571855,598984,629218,647752,657784,658123}} |
Revision as of 18:55, 30 January 2019
<graph>{"legends":[],"scales":[{"type":"ordinal","name":"x","zero":false,"domain":{"data":"chart","field":"x"},"padding":0.2,"range":"width","nice":true},{"type":"linear","name":"y","domain":{"data":"chart","field":"y"},"zero":true,"range":"height","nice":true},{"domain":{"data":"chart","field":"series"},"type":"ordinal","name":"color","range":"category10"}],"version":2,"marks":[{"type":"rect","properties":{"hover":{"fill":{"value":"red"}},"update":{"fill":{"scale":"color","field":"series"}},"enter":{"y":{"scale":"y","field":"y"},"x":{"scale":"x","field":"x"},"y2":{"scale":"y","value":0},"width":{"scale":"x","offset":-1,"band":true},"fill":{"scale":"color","field":"series"}}},"from":{"data":"chart"}}],"height":200,"axes":[{"type":"x","title":"","scale":"x","format":"d","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":false},{"type":"y","title":"","scale":"y","format":"d","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":false}],"data":[{"format":{"parse":{"y":"integer","x":"integer"},"type":"json"},"name":"chart","values":[{"y":383635,"series":"y","x":2006},{"y":361977,"series":"y","x":2007},{"y":372551,"series":"y","x":2008},{"y":386145,"series":"y","x":2009},{"y":392376,"series":"y","x":2010},{"y":458275,"series":"y","x":2011},{"y":530422,"series":"y","x":2012},{"y":571855,"series":"y","x":2013},{"y":598984,"series":"y","x":2014},{"y":629218,"series":"y","x":2015},{"y":647752,"series":"y","x":2016},{"y":657784,"series":"y","x":2017},{"y":658123,"series":"y","x":2018}]}],"width":400}</graph>