{"$schema":"https://vega.github.io/schema/vega-lite/v3.json","config":{"view":{"stroke":""}},"width":500,"height":437.5,"data":{"values":[{"gridCol":8,"gridRow":4,"borough":"Bar","date":"Jan-18","totalAttendees":225149,"hospital":"BARKING, HAVERING & REDBRIDGE","fullName":"Barking and Dagenham"},{"gridCol":4,"gridRow":2,"borough":"Brn","date":"Feb-18","totalAttendees":0,"hospital":"N/A","fullName":"Barnet"},{"gridCol":8,"gridRow":5,"borough":"Bxl","date":"Mar-18","totalAttendees":0,"hospital":"N/A","fullName":"Bexley"},{"gridCol":3,"gridRow":3,"borough":"Brt","date":"Apr-18","totalAttendees":0,"hospital":"N/A","fullName":"Brent"},{"gridCol":6,"gridRow":6,"borough":"Brm","date":"May-18","totalAttendees":0,"hospital":"N/A","fullName":"Bromley"},{"gridCol":4,"gridRow":3,"borough":"Cmd","date":"Jun-18","totalAttendees":236081,"hospital":"ROYAL FREE LONDON","fullName":"Camden"},{"gridCol":5,"gridRow":4,"borough":"Cty","date":"Jul-18","totalAttendees":139913,"hospital":"UNIVERSITY COLLEGE LONDON","fullName":"City of London"},{"gridCol":5,"gridRow":6,"borough":"Crd","date":"Aug-18","totalAttendees":79004,"hospital":"CROYDON","fullName":"Croydon"},{"gridCol":2,"gridRow":3,"borough":"Elg","date":"Sep-18","totalAttendees":0,"hospital":"N/A","fullName":"Ealing"},{"gridCol":5,"gridRow":1,"borough":"Enf","date":"Oct-18","totalAttendees":119624,"hospital":"NORTH MIDDLESEX","fullName":"Enfield"},{"gridCol":7,"gridRow":5,"borough":"Grn","date":"Nov-18","totalAttendees":0,"hospital":"N/A","fullName":"Greenwich"},{"gridCol":6,"gridRow":3,"borough":"Hck","date":"Dec-18","totalAttendees":124863,"hospital":"HOMERTON","fullName":"Hackney"},{"gridCol":2,"gridRow":4,"borough":"Hms","date":"Jan-18","totalAttendees":0,"hospital":"N/A","fullName":"Hammersmith and Fulham"},{"gridCol":5,"gridRow":2,"borough":"Hgy","date":"Feb-18","totalAttendees":0,"hospital":"N/A","fullName":"Haringey"},{"gridCol":3,"gridRow":2,"borough":"Hrw","date":"Mar-18","totalAttendees":143584,"hospital":"LONDON NORTH WEST","fullName":"Harrow"},{"gridCol":8,"gridRow":3,"borough":"Hvg","date":"Apr-18","totalAttendees":0,"hospital":"N/A","fullName":"Havering"},{"gridCol":1,"gridRow":3,"borough":"Hdn","date":"May-18","totalAttendees":66145,"hospital":"THE HILLINGDON","fullName":"Hillingdon"},{"gridCol":1,"gridRow":4,"borough":"Hns","date":"Jun-18","totalAttendees":0,"hospital":"N/A","fullName":"Hounslow"},{"gridCol":5,"gridRow":3,"borough":"Isl","date":"Jul-18","totalAttendees":106666,"hospital":"WHITTINGTON","fullName":"Islington"},{"gridCol":3,"gridRow":4,"borough":"Kns","date":"Aug-18","totalAttendees":216764,"hospital":"CHELSEA & WESTMINSTER","fullName":"Kensington and Chelsea"},{"gridCol":3,"gridRow":6,"borough":"Kng","date":"Sep-18","totalAttendees":110556,"hospital":"KINGSTON","fullName":"Kingston upon Thames"},{"gridCol":4,"gridRow":5,"borough":"Lam","date":"Oct-18","totalAttendees":191965,"hospital":"KING'S COLLEGE","fullName":"Lambeth"},{"gridCol":6,"gridRow":5,"borough":"Lsh","date":"Nov-18","totalAttendees":155883,"hospital":"LEWISHAM AND GREENWICH","fullName":"Lewisham"},{"gridCol":4,"gridRow":6,"borough":"Mrt","date":"Dec-18","totalAttendees":0,"hospital":"N/A","fullName":"Merton"},{"gridCol":7,"gridRow":4,"borough":"Nwm","date":"Jan-18","totalAttendees":0,"hospital":"N/A","fullName":"Newham"},{"gridCol":7,"gridRow":3,"borough":"Rdb","date":"Feb-18","totalAttendees":0,"hospital":"N/A","fullName":"Redbridge"},{"gridCol":2,"gridRow":5,"borough":"Rch","date":"Mar-18","totalAttendees":0,"hospital":"N/A","fullName":"Richmond upon Thames"},{"gridCol":5,"gridRow":5,"borough":"Swr","date":"Apr-18","totalAttendees":159597,"hospital":"GUY'S & ST THOMAS'","fullName":"Southwark"},{"gridCol":4,"gridRow":7,"borough":"Stn","date":"May-18","totalAttendees":149208,"hospital":"EPSOM & ST HELIER","fullName":"Sutton"},{"gridCol":6,"gridRow":4,"borough":"Tow","date":"Jun-18","totalAttendees":323997,"hospital":"BARTS","fullName":"Tower Hamlets"},{"gridCol":6,"gridRow":2,"borough":"Wth","date":"Jul-18","totalAttendees":0,"hospital":"N/A","fullName":"Waltham Forest"},{"gridCol":3,"gridRow":5,"borough":"Wns","date":"Aug-18","totalAttendees":156709,"hospital":"ST GEORGE'S","fullName":"Wandsworth"},{"gridCol":4,"gridRow":4,"borough":"Wst","date":"Sep-18","totalAttendees":117799,"hospital":"IMPERIAL COLLEGE","fullName":"Westminster"}]},"layer":[{"encoding":{"x":{"field":"gridCol","type":"ordinal","axis":null},"y":{"field":"gridRow","type":"ordinal","axis":null},"color":{"field":"totalAttendees","type":"quantitative","scale":{"scheme":"orangered"},"title":"Total Attendees"},"column":{"field":"hospital","type":"nominal"},"tooltip":[{"field":"fullName","type":"nominal","title":"Borough"},{"field":"hospital","type":"nominal","title":"Hospital"},{"field":"totalAttendees","type":"quantitative","title":"Total Attendees"}]},"mark":{"type":"rect","stroke":"white"}},{"encoding":{"x":{"field":"gridCol","type":"ordinal","axis":null},"y":{"field":"gridRow","type":"ordinal","axis":null},"text":{"field":"borough","type":"geojson"},"tooltip":[{"field":"fullName","type":"nominal","title":"Borough"},{"field":"hospital","type":"nominal","title":"Hospital"},{"field":"totalAttendees","type":"quantitative","title":"Total Attendees"}]},"mark":"text"}]}

{"$schema":"https://vega.github.io/schema/vega-lite/v3.json","width":300,"height":309.0234857849196,"repeat":{"row":["attendees"],"column":["month"]},"data":{"url":"https://raw.githubusercontent.com/Lahini-S/datavis/master/nhsBD.json"},"selection":{"highlight":{"type":"single","on":"mouseover","empty":"none"},"select":{"type":"multi","fields":["date"]}},"encoding":{"x":{"field":"date","type":"ordinal","timeUnit":"month","axis":{"title":""},"scale":{"paddingInner":0.7}},"y":{"field":"attendees","type":"quantitative","axis":{"title":""}},"color":{"field":"date","type":"ordinal","timeUnit":"month","scale":{"domain":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"range":["#4C78A8","#F58518","#E45756","#72B7B2","#54A24B","#EECA3B","#B279A2","#FF9DA6","#9D755D","#BAB0AC","#E6E6FA","#708090"]},"legend":null},"column":{"field":"hospital","type":"nominal"},"tooltip":[{"field":"attendees","type":"quantitative","title":"Attendees"}],"fillOpacity":{"condition":{"selection":"select","value":1},"value":0.2},"order":{"field":"date","type":"ordinal","timeUnit":"month"},"strokeWidth":{"condition":[{"test":{"and":[{"selection":"select"},"length(data('select_store')) > 0"]},"value":2},{"test":{"selection":"highlight"},"value":1}],"value":0}},"config":{"view":{"stroke":""}},"mark":{"type":"bar","fill":"white","stroke":"black","cursor":"pointer"}}