PageSourceSearch

https://arcanes.be/assets/CommuneMenageChart-CxG4B5iz.js

js arcanes.be collected 2026-10-03 18:19:30 UTC 2,274 bytes, 1 lines download raw bytes

1import{j as e}from"./index-lHrFFjsB.js";import{R as l,T as d}from"./generateCategoricalChart-DTzrZ9JJ.js";import{A as f}from"./AreaChart-J8ZWxLpX.js";import{C as c}from"./CartesianGrid-_FiNhGnt.js";import{X as m,Y as u}from"./YAxis-BMA7zDrQ.js";import{A as x}from"./Area-CXMoAZfU.js";function h(t){if(!t)return[];try{const o=typeof t=="string"?JSON.parse(t):t;return Object.entries(o).filter(([,s])=>s!=null&&s!==0).map(([s,r])=>({year:s,value:Number(r)})).sort((s,r)=>s.year.localeCompare(r.year))}catch{return[]}}const p=t=>t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}k`:`${t}`,j=(t,o,s,r)=>t==="nl"?s:t==="en"?r:o;function v({data:t,label:o="Ménages",color:s="#7c3aed",lang:r="fr"}){const i=h(t);if(i.length<2)return null;const a=i.length>15?2:i.length>10?1:0;return e.jsxs("div",{className:"rounded-xl border border-border bg-card p-5 shadow-sm",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("h3",{className:"text-sm font-semibold text-foreground",children:j(r,"Évolution des ménages","Evolutie huishoudens","Household evolution")}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("div",{className:"h-2 w-2 rounded-full",style:{backgroundColor:s}}),e.jsx("span",{className:"text-[11px] text-muted-foreground",children:o})]})]}),e.jsx(l,{width:"100%",height:180,children:e.jsxs(f,{data:i,margin:{top:5,right:10,left:0,bottom:5},children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:"gradMenage",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"5%",stopColor:s,stopOpacity:.15}),e.jsx("stop",{offset:"95%",stopColor:s,stopOpacity:0})]})}),e.jsx(c,{strokeDasharray:"3 3",stroke:"#e2e8f0",vertical:!1}),e.jsx(m,{dataKey:"year",tick:{fontSize:10,fill:"#94a3b8"},axisLine:!1,tickLine:!1,interval:a}),e.jsx(u,{tick:{fontSize:11,fill:"#94a3b8"},tickFormatter:p,axisLine:!1,tickLine:!1,width:45}),e.jsx(d,{formatter:n=>[Number(n).toLocaleString("fr-BE")],labelStyle:{fontWeight:600,color:"#0F2E35"},contentStyle:{borderRadius:8,border:"1px solid #e2e8f0",fontSize:12}}),e.jsx(x,{type:"monotone",dataKey:"value",name:o,stroke:s,strokeWidth:2.5,fill:"url(#gradMenage)",dot:i.length<=15?{r:3,fill:s,stroke:"#fff",strokeWidth:2}:!1,connectNulls:!0})]})})]})}export{v as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.