Code to help with the re-arranging of my life in 2024.
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.1 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":"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>