Pyramidenhierarchie
Mitarbeitende nach Ebene innerhalb einer Pyramidenkontur, Nachwuchskräfte an der Basis.
Diagramm ohne Website-Rahmen öffnen ↗
const options = {
chart: {
height: 420,
fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
type: "unit",
toolbar: {
show: false
}
},
series: [140, 60, 24, 6],
labels: ["Associates", "Managers", "Directors", "Executives"],
plotOptions: {
unit: {
positions: {
name: "pyramid",
category: "generated",
kind: "generated",
rings: [
[
[0.5, 0],
[1, 1],
[0, 1]
]
],
source: "original",
minUnits: 12,
aspect: 1.15,
order: "rowsUp",
cx: undefined,
cy: undefined,
shape: {
name: "pyramid",
category: "generated",
kind: "generated",
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
}
}
},
title: {
text: "Headcount by level"
},
theme: {
mode: "light",
preset: "coastal"
}
}
const chart = new WestCoastCharts(document.querySelector('#chart'), options)
chart.render()import WestCoastCharts from 'west-coast-charts'
import types from 'west-coast-charts/types'
WestCoastCharts.use(types)
const options = {
chart: {
height: 420,
fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
type: "unit",
toolbar: {
show: false
}
},
series: [140, 60, 24, 6],
labels: ["Associates", "Managers", "Directors", "Executives"],
plotOptions: {
unit: {
positions: {
name: "pyramid",
category: "generated",
kind: "generated",
rings: [
[
[0.5, 0],
[1, 1],
[0, 1]
]
],
source: "original",
minUnits: 12,
aspect: 1.15,
order: "rowsUp",
cx: undefined,
cy: undefined,
shape: {
name: "pyramid",
category: "generated",
kind: "generated",
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
}
}
},
title: {
text: "Headcount by level"
},
theme: {
mode: "light",
preset: "coastal"
}
}
const chart = new WestCoastCharts(document.querySelector('#chart'), options)
await chart.render() Warten auf das Diagramm.
Open Data & agent view to read this chart through chart.describe().
Aus der laufenden Bibliothek über das optionale agent/describe -Modul gelesen. Text, Tabelle und JSON zeigen denselben Zustand. Ausschließlich Demonstrationsdaten.
$ wcc chart export unit-pyramid-hierarchy.json --out unit-pyramid-hierarchy.svg --with-table Public agent tools 0.2.3, tested with Library 1.1.5; available from the versioned GitHub release and npm. Speichern Sie zuerst eine JSON-Spezifikation und prüfen Sie vor dem Rendern die geladene Runtime und die unterstützten Module. Befehlsreferenz
Loading /gallery/unit/pyramid-hierarchy/index.md …