OctoberAI commited on
Commit
fc33027
·
verified ·
1 Parent(s): 25579fc

Price chart from the open dataset

Browse files
Files changed (2) hide show
  1. README.md +12 -5
  2. index.html +72 -17
README.md CHANGED
@@ -1,10 +1,17 @@
1
  ---
2
- title: Floor Plan Prices
3
- emoji: 👀
4
- colorFrom: gray
5
- colorTo: purple
6
  sdk: static
7
  pinned: false
 
 
 
 
 
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: Floor Plan Prices by Provider
3
+ emoji: 📐
4
+ colorFrom: yellow
5
+ colorTo: gray
6
  sdk: static
7
  pinned: false
8
+ license: cc-by-4.0
9
+ short_description: Cheapest 2D floor plan price from 24 providers (2026)
10
+ tags:
11
+ - real-estate
12
+ - open-data
13
+ datasets:
14
+ - OctoberAI/us-real-estate-listing-photo-data
15
  ---
16
 
17
+ Cheapest published 2D floor plan price from floor plan services, scan platforms and apps for property listings, read from each provider's own page on 18 November 2026. Some prices are per floor, some per property; providers that showed only another currency are left out of the chart. Built on the open dataset [OctoberAI/us-real-estate-listing-photo-data](https://huggingface.co/datasets/OctoberAI/us-real-estate-listing-photo-data) (CC BY 4.0) by [October](https://www.october-ai.com). The full write-up: [real estate floor plan cost](https://www.october-ai.com/guides/real-estate-floor-plan-cost).
index.html CHANGED
@@ -1,19 +1,74 @@
1
  <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </html>
 
1
  <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>Real estate floor plan prices by provider (2026)</title>
7
+ <meta name="description" content="Cheapest published 2D floor plan price from floor plan services, scan platforms and apps for property listings, read from each provider's own page on 18 November 2026. Some prices are per floor, some per property; providers that showed only another currency are left out of the chart.">
8
+ <style>
9
+ :root { --ink: #16171a; --muted: #5e6169; --bar: #ff9f43; --line: #e4e4e4; --bg: #fff; }
10
+ @media (prefers-color-scheme: dark) { :root { --ink: #f2f2f2; --muted: #a7a9ae; --line: #33353a; --bg: #111214; } }
11
+ body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, sans-serif; }
12
+ main { max-width: 820px; margin: 0 auto; padding: 28px 16px 48px; }
13
+ h1 { font-size: 26px; line-height: 1.2; margin: 0 0 8px; }
14
+ p { color: var(--muted); margin: 0 0 14px; }
15
+ a { color: inherit; }
16
+ .row { display: grid; grid-template-columns: 200px 1fr 110px; gap: 10px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); }
17
+ .bar { height: 14px; background: var(--bar); border-radius: 3px; }
18
+ .val { text-align: right; font-variant-numeric: tabular-nums; }
19
+ .val small { color: var(--muted); }
20
+ footer { margin-top: 22px; font-size: 13px; color: var(--muted); }
21
+ @media (max-width: 560px) { .row { grid-template-columns: 120px 1fr 86px; } }
22
+ </style>
23
+ </head>
24
+ <body>
25
+ <main>
26
+ <h1>Real estate floor plan prices by provider (2026)</h1>
27
+ <p>Cheapest published 2D floor plan price from floor plan services, scan platforms and apps for property listings, read from each provider's own page on 18 November 2026. Some prices are per floor, some per property; providers that showed only another currency are left out of the chart.</p>
28
+ <div id="chart" aria-live="polite">Loading the data…</div>
29
+ <footer>
30
+ Data: <a href="https://huggingface.co/datasets/OctoberAI/us-real-estate-listing-photo-data">OctoberAI/us-real-estate-listing-photo-data</a> (CC BY 4.0), also on
31
+ <a href="https://github.com/October-ai-jpg/listing-photo-data">GitHub</a> and <a href="https://www.october-ai.com/data">october-ai.com/data</a>.
32
+ The numbers in words, with every source: <a href="https://www.october-ai.com/guides/real-estate-floor-plan-cost">real estate floor plan cost</a>. Prices are what each business publishes, mostly "starting at" prices.
33
+ </footer>
34
+ </main>
35
+ <script>
36
+ const CFG = {"csv": "floor-plan-prices.csv", "group": "provider", "filter": null, "cols": ["floor_plan_from_usd"], "link": "url"};
37
+ const CSV = "https://huggingface.co/datasets/OctoberAI/us-real-estate-listing-photo-data/resolve/main/data/" + CFG.csv;
38
+ function parseCsv(t) {
39
+ const rows = []; let row = [], f = "", q = false;
40
+ for (let i = 0; i < t.length; i++) {
41
+ const c = t[i];
42
+ if (q) { if (c === '"' && t[i + 1] === '"') { f += '"'; i++; } else if (c === '"') q = false; else f += c; }
43
+ else if (c === '"') q = true; else if (c === ",") { row.push(f); f = ""; } else if (c === "\n") { row.push(f); rows.push(row); row = []; f = ""; } else if (c !== "\r") f += c;
44
+ }
45
+ if (f || row.length) { row.push(f); rows.push(row); }
46
+ const [h, ...rs] = rows;
47
+ return rs.filter((r) => r.length === h.length).map((r) => Object.fromEntries(h.map((k, i) => [k, r[i]])));
48
+ }
49
+ const median = (v) => { const s = [...v].sort((a, b) => a - b), m = s.length >> 1; return s.length % 2 ? s[m] : (s[m - 1] + s[m]) / 2; };
50
+ const money = (v) => (v < 10 ? "$" + v.toFixed(2) : "$" + Math.round(v));
51
+ fetch(CSV).then((r) => r.text()).then((t) => {
52
+ const data = parseCsv(t).filter((r) => !CFG.filter || r[CFG.filter] === "true");
53
+ const by = {}, href = {};
54
+ for (const r of data) {
55
+ const v = CFG.cols.map((c) => parseFloat(r[c])).filter((x) => Number.isFinite(x) && x > 0);
56
+ if (!v.length) continue;
57
+ (by[r[CFG.group]] ||= []).push(Math.min(...v));
58
+ if (CFG.link && r[CFG.link]) href[r[CFG.group]] = r[CFG.link];
59
+ }
60
+ const rows = Object.entries(by).map(([k, v]) => ({ k, med: median(v), n: v.length })).sort((a, b) => b.med - a.med);
61
+ const max = Math.max(...rows.map((r) => r.med));
62
+ const el = document.getElementById("chart"); el.textContent = "";
63
+ for (const r of rows) {
64
+ const d = document.createElement("div"); d.className = "row";
65
+ const name = document.createElement("div");
66
+ if (href[r.k]) { const a = document.createElement("a"); a.href = href[r.k]; a.rel = "nofollow noopener"; a.textContent = r.k; name.append(a); } else name.textContent = r.k;
67
+ const bw = document.createElement("div"); const bar = document.createElement("div"); bar.className = "bar"; bar.style.width = `${(r.med / max) * 100}%`; bw.append(bar);
68
+ const val = document.createElement("div"); val.className = "val"; val.innerHTML = `${money(r.med)}${CFG.link ? "" : ` <small>(${r.n})</small>`}`;
69
+ d.append(name, bw, val); el.append(d);
70
+ }
71
+ }).catch(() => { document.getElementById("chart").textContent = "Could not load the data."; });
72
+ </script>
73
+ </body>
74
  </html>