Browse Source

update summary-manchester.org file.

master
Craig Oates 2 months ago
parent
commit
17a7a802d2
  1. 19
      summary-manchester.org

19
summary-manchester.org

@ -59,9 +59,10 @@ RENT RATES. ASSUME THEY DON'T.* See [[file:./on-the-market-manchester.org][On Th
| Roomies | 16 | 641 | £0–£1200 | 400 | 1000 |
| On The Market | 438 | 1005 | £300–£1250 | 395 | 1250 |
| Open Rent | 114 | 735 | £400–£1500 | 400 | 1350 |
| Zoopla | 5 | 1138 | £400–£1300 | 1050 | 1250 |
#+begin_src lisp :var table=manc-avg-rent :results output raw
(let ((filepath #P"working-data/manc-avg-rent-feb-2024.csv"))
(let ((filepath #P"working-data/manc-avg-rent-feb-march-2024.csv"))
(with-open-file (stream
filepath
:direction :output
@ -76,16 +77,16 @@ RENT RATES. ASSUME THEY DON'T.* See [[file:./on-the-market-manchester.org][On Th
#+end_src
#+RESULTS:
[[file:working-data/manc-avg-rent-feb-2024.csv]]
[[file:working-data/manc-avg-rent-feb-march-2024.csv]]
#+begin_src lisp :results file
(let* ((values
(lisp-stat:plist-df
`(:x-axis #("Right Move" "Spare Room" "Ideal Flatmate"
"Roomies" "On The Market" "Open Rent")
:y-axis #(1204 589 714 641 1005 735)))))
"Roomies" "On The Market" "Open Rent" "Zoopla")
:y-axis #(1204 589 714 641 1005 735 1138)))))
(vega:defplot manc-avg-rent
`(:title "Monthly Average Rent Rates (Bills Inc.) Manchester Feb. 2024"
`(:title "Monthly Average Rent Rates (Bills Inc.) Manchester Feb–March 2024"
:mark :bar
:width 600
:height 600
@ -97,20 +98,20 @@ RENT RATES. ASSUME THEY DON'T.* See [[file:./on-the-market-manchester.org][On Th
(:mark (:type :rule :color "darkorange" :size 3)
:encoding (:y (:field :y-axis :type :quantitative :aggregate :average)
:tooltip (:field :y-axis :type :quantitative :aggregate :average))))))
(vega:write-html manc-avg-rent "renders/manc-rent-averages-feb-2024.html"))
(vega:write-html manc-avg-rent "renders/manc-rent-averages-feb-march-2024.html"))
#+end_src
#+RESULTS:
[[file:renders/manc-rent-averages-feb-2024.html]]
[[file:renders/manc-rent-averages-feb-march-2024.html]]
To save time, copying and pasting over the PNG file, just run this. Make sure
the HTML version of the chart saves the exported PNG file to your =~/Downloads/=
directory.
#+begin_src shell
mv ~/Downloads/visualization.png ./renders/manc-rent-averages-feb-2024.png
mv ~/Downloads/visualization.png ./renders/manc-rent-averages-feb-march-2024.png
#+end_src
#+RESULTS:
[[file:./renders/manc-rent-averages-feb-2024.png]]
[[file:./renders/manc-rent-averages-feb-march-2024.png]]

Loading…
Cancel
Save