vue
<template>
<NbGanttChart title="Sprint timeline" :tasks="tasks" time-scale="week" />
</template>
<script setup lang="ts">
const tasks = [
{ id: 't1', label: 'Design', start: '2025-06-01', end: '2025-06-14' },
{ id: 't2', label: 'Develop', start: '2025-06-10', end: '2025-07-10' },
{ id: 't3', label: 'Test', start: '2025-07-05', end: '2025-07-25' },
{ id: 't4', label: 'Deploy', start: '2025-07-26', end: '2025-07-31' },
]
</script>Time scales
The timeScale prop controls the granularity of the header and grid. Options: day, week, month, quarter, year.
Without chrome
For compact dashboards, suppress the legend, tooltip, and grid.