Skip to main content

start

Description

Sets the start date of the timescale

Usage

start?: Date;

Example

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

const App = () => {
const data = getData();

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

export default App;