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":"Monthly","yAxis":596.6900024414063},{"xAxis":"Weekly (Scaled up to Monthly)","yAxis":581.7899780273438}]},"$schema":"https://vega.github.io/schema/vega-lite/v5.json","title":"Difference in Rent Mean Between Monthly & Weekly Listings on Spare Room (23/02/2024)","mark":"bar","width":600,"height":600,"encoding":{"x":{"field":"xAxis","title":"Payment Frequency","type":"nominal","axis":{"labelAngle":0}},"y":{"field":"yAxis","title":"Rent Mean (£)","type":"quantitative"},"tooltip":{"field":"yAxis"}}}; vegaEmbed("#vis", spec).then(result => console.log(result)).catch(console.warn);</script></body></html> |
Loading…
Reference in new issue