Browse Source

update summary-manchester.org file.

master
Craig Oates 3 months ago
parent
commit
139e11efa7
  1. 19
      summary-manchester.org

19
summary-manchester.org

@ -53,6 +53,7 @@ this up would take to long, for little gain.
| Right Move | 121 | 1204 | £275–£1500 | 945 | 1495 | | Right Move | 121 | 1204 | £275–£1500 | 945 | 1495 |
| Spare Room | 647 | 589 | £100–£1260 | 300 | 1260 | | Spare Room | 647 | 589 | £100–£1260 | 300 | 1260 |
| Ideal Flatmate | 17 | 714 | £200–£1200 | 480 | 956 | | Ideal Flatmate | 17 | 714 | £200–£1200 | 480 | 956 |
| Roomies | 16 | 641 | £0–£1200 | 400 | 1000 |
| | | | | | | | | | | | | |
#+begin_src lisp :var table=manc-avg-rent :results output raw #+begin_src lisp :var table=manc-avg-rent :results output raw
@ -74,16 +75,16 @@ this up would take to long, for little gain.
[[file:working-data/manc-avg-rent-feb-2024.csv]] [[file:working-data/manc-avg-rent-feb-2024.csv]]
#+begin_src lisp :results file #+begin_src lisp :results file
(let* ((values (lisp-stat:plist-df `(:x-axis #("Right Move" "Spare Room" "Ideal Flatmate") (let* ((values (lisp-stat:plist-df `(:x-axis #("Right Move" "Spare Room" "Ideal Flatmate" "Roomies")
:y-axis #(1204 589 714))))) :y-axis #(1204 589 714 641)))))
(vega:defplot manc-avg-rent (vega:defplot manc-avg-rent
`(:title "Average Rent Rates Manchester Feb. 2024" `(:title "Monthly Average Rent Rates (Bills Inc.) Manchester Feb. 2024"
:mark :bar :mark :bar
:width 600 :width 600
:height 600 :height 600
:data ,values :data ,values
:encoding (:x (:field :x-axis :title "Company" :type :nominal :axis ("labelAngle" 0)) :encoding (:x (:field :x-axis :title "Company" :type :nominal :axis ("labelAngle" 0))
:y (:field :y-axis :title "Rent Average (£)" :type :quantitative) :y (:field :y-axis :title "Rent (£)" :type :quantitative)
:tooltip (:field :y-axis)))) :tooltip (:field :y-axis))))
(vega:write-html manc-avg-rent "renders/manc-rent-averages-feb-2024.html")) (vega:write-html manc-avg-rent "renders/manc-rent-averages-feb-2024.html"))
#+end_src #+end_src
@ -91,4 +92,14 @@ this up would take to long, for little gain.
#+RESULTS: #+RESULTS:
[[file:renders/manc-rent-averages-feb-2024.html]] [[file:renders/manc-rent-averages-feb-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
#+end_src
#+RESULTS:
[[file:./renders/manc-rent-averages-feb-2024.png]] [[file:./renders/manc-rent-averages-feb-2024.png]]

Loading…
Cancel
Save