You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
1.4 KiB
10 lines
1.4 KiB
<html><head><style>html{ |
|
height: 100%; |
|
} |
|
|
|
html body{ |
|
height: 100%; |
|
display: flex; |
|
justify-content: center; |
|
align-items: center; |
|
}</style><script type='text/javascript' src='https://cdn.jsdelivr.net/npm/vega@5'></script><script type='text/javascript' src='https://cdn.jsdelivr.net/npm/vega-lite@5'></script><script type='text/javascript' src='https://cdn.jsdelivr.net/npm/vega-embed@6'></script></head><body><div id='vis'></div><script>var spec = {"data":{"values":[{"xAxis":"Prime Location","yAxis":1041},{"xAxis":"Zoopla","yAxis":1138},{"xAxis":"Open Rent","yAxis":735},{"xAxis":"On The Market","yAxis":1005},{"xAxis":"Roomies","yAxis":641},{"xAxis":"Ideal Flatmate","yAxis":714},{"xAxis":"Spare Room","yAxis":589},{"xAxis":"Right Move","yAxis":1204}]},"$schema":"https://vega.github.io/schema/vega-lite/v5.json","title":"Monthly Average Rent Rates Manchester Feb–March 2024","mark":"bar","width":600,"height":600,"layer":[{"mark":{"type":"bar"},"encoding":{"x":{"field":"xAxis","title":"Company","type":"nominal","axis":{"labelAngle":0}},"y":{"field":"yAxis","title":"Rent (£)","type":"quantitative"},"tooltip":{"field":"yAxis"}}},{"mark":{"type":"rule","color":"darkorange","size":3},"encoding":{"y":{"field":"yAxis","type":"quantitative","aggregate":"average"},"tooltip":{"field":"yAxis","type":"quantitative","aggregate":"average"}}}]}; vegaEmbed("#vis", spec).then(result => console.log(result)).catch(console.warn);</script></body></html> |