Skip to main content

end

Description

Sets the end date of the timescale

Usage

end?: 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(2022, 2, 1)}
end={new Date(2023, 3, 1)}
//other settings />