Skip to main content

end

Description

Sets the end date of the timescale

Usage

end?: Date;

Example

import { getData } from "./common/data";
import { Gantt } from "wx-react-gantt";
import "wx-react-gantt/dist/gantt.css";

function GanttComponent() {
const data = getData();

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

export default GanttComponent;