Browse Source

add On The Market data to summary-manchester.org file.

master
Craig Oates 3 months ago
parent
commit
ac9e119606
  1. 33
      summary-manchester.org

33
summary-manchester.org

@ -47,6 +47,9 @@ website/companies. I've decided to copy them over from the files holding said
information. It's just easier to do so because of how small the data is. Coding
this up would take to long, for little gain.
*NOTE: ON THE MARKET LISTING DON'T CLEARLY STATE IF BILLS ARE INCLUDED IN THEIR
RENT RATES. ASSUME THEY DON'T.* See [[file:./on-the-market-manchester.org][On The Move]] (Manc.) page for more context.
#+NAME: manc-avg-rent
| Company | Quantity | Avg-Rent | Search-Range | Min-Rent | Max-Rent |
|----------------+----------+----------+--------------+----------+----------|
@ -54,7 +57,7 @@ this up would take to long, for little gain.
| Spare Room | 647 | 589 | £100–£1260 | 300 | 1260 |
| Ideal Flatmate | 17 | 714 | £200–£1200 | 480 | 956 |
| Roomies | 16 | 641 | £0–£1200 | 400 | 1000 |
| | | | | | |
| On The Market | 438 | 1005 | £300–£1250 | 395 | 1250 |
#+begin_src lisp :var table=manc-avg-rent :results output raw
(let ((filepath #P"working-data/manc-avg-rent-feb-2024.csv"))
@ -75,18 +78,22 @@ this up would take to long, for little gain.
[[file:working-data/manc-avg-rent-feb-2024.csv]]
#+begin_src lisp :results file
(let* ((values (lisp-stat:plist-df `(:x-axis #("Right Move" "Spare Room" "Ideal Flatmate" "Roomies")
:y-axis #(1204 589 714 641)))))
(vega:defplot manc-avg-rent
`(:title "Monthly Average Rent Rates (Bills Inc.) Manchester Feb. 2024"
:mark :bar
:width 600
:height 600
:data ,values
:encoding (:x (:field :x-axis :title "Company" :type :nominal :axis ("labelAngle" 0))
:y (:field :y-axis :title "Rent (£)" :type :quantitative)
:tooltip (:field :y-axis))))
(vega:write-html manc-avg-rent "renders/manc-rent-averages-feb-2024.html"))
(let* ((values (lisp-stat:plist-df `(:x-axis #("Right Move"
"Spare Room"
"Ideal Flatmate"
"Roomies"
"On The Market")
:y-axis #(1204 589 714 641 1005)))))
(vega:defplot manc-avg-rent
`(:title "Monthly Average Rent Rates (Bills Inc.) Manchester Feb. 2024"
:mark :bar
:width 600
:height 600
:data ,values
:encoding (:x (:field :x-axis :title "Company" :type :nominal :axis ("labelAngle" 0))
:y (:field :y-axis :title "Rent (£)" :type :quantitative)
:tooltip (:field :y-axis))))
(vega:write-html manc-avg-rent "renders/manc-rent-averages-feb-2024.html"))
#+end_src
#+RESULTS:

Loading…
Cancel
Save