Skip to main content

start

Description

Sets the start date of the timescale

Usage

start?: Date;

The date format should be one of the supported by date-fns

Example

<script>
import { getData } from "./common/data";
import { Gantt } from "@wx/svelte-gantt";

const data = getData();

</script>

<Gantt
tasks={data.tasks}
start={new Date(2023, 2, 1)} />