Skip to main content

end

Description

Optional. Sets the end date of the timescale

Usage

end?: Date;

Example

import { getData } from "./common/data";
import { Gantt } from "@svar-ui/react-gantt";

const data = getData();

export default function App() {
return (
<Gantt
tasks={data.tasks}
start={new Date(2022, 2, 1)}
end={new Date(2023, 3, 1)}
/>
);
}