Craig Oates
2 months ago
1 changed files with 10 additions and 0 deletions
@ -0,0 +1,10 @@
|
||||
<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":"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":"Average Rent Rates Manchester Feb. 2024","mark":"bar","width":600,"height":600,"encoding":{"x":{"field":"xAxis","title":"Company","type":"nominal","axis":{"labelAngle":0}},"y":{"field":"yAxis","title":"Rent Average (£)","type":"quantitative"},"tooltip":{"field":"yAxis"}}}; vegaEmbed("#vis", spec).then(result => console.log(result)).catch(console.warn);</script></body></html> |
Loading…
Reference in new issue