Abhängigkeitstypen
Ende-zu-Anfang-, Anfang-zu-Anfang-, Ende-zu-Ende- und Anfang-zu-Ende-Verknüpfungen mit Verzögerung und Vorlauf (dependsOn: [{ id, type, lag }]); der kritische Pfad folgt je Typ der maßgeblichen Verknüpfung. Eine Verknüpfung, die den Zeitplan verletzt, wird markiert (dependencies.violations).
Diagramm ohne Website-Rahmen öffnen ↗Drawing width at least 1,024 px. Scroll within the chart on smaller screens.
const options = {
chart: {
height: "auto",
toolbar: {
show: false
},
type: "gantt"
},
series: [
{
name: "Fit-out",
data: [
{
id: "a",
x: "Demolition",
y: [1791151200000, 1791496800000],
progress: 100
},
{
id: "b",
x: "Electrics",
y: [1791756000000, 1792360800000],
progress: 60,
dependsOn: [
{
id: "a",
type: "FS",
lag: 3
}
]
},
{
id: "c",
x: "Plumbing",
y: [1791928800000, 1792447200000],
progress: 40,
dependsOn: [
{
id: "b",
type: "SS",
lag: 2
}
]
},
{
id: "e",
x: "Inspection",
y: [1792101600000, 1792447200000],
dependsOn: [
{
id: "c",
type: "FF"
}
]
},
{
id: "f",
x: "Plastering",
y: [1792360800000, 1793055600000],
dependsOn: [
{
id: "e",
type: "FS",
lag: -1
}
]
},
{
id: "g",
x: "Scaffold hire",
y: [1791237600000, 1793142000000],
dependsOn: [
{
id: "h",
type: "SF"
}
]
},
{
id: "h",
x: "Painting",
y: [1793142000000, 1793746800000],
dependsOn: ["f"]
},
{
id: "k",
x: "Snagging",
y: [1793314800000, 1793833200000],
dependsOn: [
{
id: "h",
type: "FF",
lag: 2
}
]
}
]
}
],
plotOptions: {
gantt: {
today: {
show: false
},
criticalPath: {
show: true
},
dependencies: {
violations: true
}
}
},
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'
import premium from 'west-coast-charts/premium'
WestCoastCharts.use(types).use(premium)
const WestCoastChartsPremium = premium
WestCoastCharts.setLicenseKey(LICENCE_KEY) // paid production licence; localhost evaluation needs no key
const options = {
chart: {
height: "auto",
toolbar: {
show: false
},
type: "gantt"
},
series: [
{
name: "Fit-out",
data: [
{
id: "a",
x: "Demolition",
y: [1791151200000, 1791496800000],
progress: 100
},
{
id: "b",
x: "Electrics",
y: [1791756000000, 1792360800000],
progress: 60,
dependsOn: [
{
id: "a",
type: "FS",
lag: 3
}
]
},
{
id: "c",
x: "Plumbing",
y: [1791928800000, 1792447200000],
progress: 40,
dependsOn: [
{
id: "b",
type: "SS",
lag: 2
}
]
},
{
id: "e",
x: "Inspection",
y: [1792101600000, 1792447200000],
dependsOn: [
{
id: "c",
type: "FF"
}
]
},
{
id: "f",
x: "Plastering",
y: [1792360800000, 1793055600000],
dependsOn: [
{
id: "e",
type: "FS",
lag: -1
}
]
},
{
id: "g",
x: "Scaffold hire",
y: [1791237600000, 1793142000000],
dependsOn: [
{
id: "h",
type: "SF"
}
]
},
{
id: "h",
x: "Painting",
y: [1793142000000, 1793746800000],
dependsOn: ["f"]
},
{
id: "k",
x: "Snagging",
y: [1793314800000, 1793833200000],
dependsOn: [
{
id: "h",
type: "FF",
lag: 2
}
]
}
]
}
],
plotOptions: {
gantt: {
today: {
show: false
},
criticalPath: {
show: true
},
dependencies: {
violations: true
}
}
},
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 gantt-dependency-types.json --out gantt-dependency-types.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/gantt/dependency-types/index.md … This example uses Premium modules. Compare licences · Embedding in a distributed product?