House tenure

Households inside a house outline.

Chart type
Unit unit
Tier
Free Core
Collection
Unit & pictogram
Render
Live, site theme
View .md Agent setup
LIVE/unit/house-tenure17 of 33 in Unit

Configuration

Raw Standalone
const options = {
  chart: {
    height: 400,
    fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
    type: "unit",
    toolbar: {
      show: false
    }
  },
  series: [118, 84, 38],
  labels: ["Owner", "Private rent", "Social rent"],
  plotOptions: {
    unit: {
      positions: {
        name: "house",
        category: "building",
        kind: "silhouette",
        rings: [
          [
            [0.5, 0],
            [1, 0.45],
            [0.88, 0.45],
            [0.88, 1],
            [0.12, 1],
            [0.12, 0.45],
            [0, 0.45]
          ]
        ],
        source: "original",
        minUnits: 12,
        aspect: 1,
        order: "rowsUp",
        cx: undefined,
        cy: undefined,
        shape: {
          name: "house",
          category: "building",
          kind: "silhouette",
          minUnits: 12,
          order: "rowsUp",
          source: "original"
        },
        with: e=>St({...t,...e||{}}),
        outlined: function outlined(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.16;const n=t.rings.map(t=>{const n=t.reduce((t,e)=>t+e[0],0)/t.length,a=t.reduce((t,e)=>t+e[1],0)/t.length;return t.map(t=>{let o=b(t,2);return[n+(o[0]-n)*(1-e),a+(o[1]-a)*(1-e)]})});return St({...t,name:t.name+"-outlined",kind:"stroke",rings:t.rings.concat(n)})},
        fill: (t,n)=>wt(e,t,n),
        isUnitShape: true
      },
      shape: "square"
    }
  },
  title: {
    text: "Households by tenure (240)"
  },
  theme: {
    mode: "light",
    preset: "coastal"
  }
}

const chart = new WestCoastCharts(document.querySelector('#chart'), options)
chart.render()