zunnzunn / vue-ganttastic

Simple, interactive and highly customizable Gantt chart component for Vue 3
https://zunnzunn.github.io/vue-ganttastic/
565 stars 141 forks source link

Unreadable graphic #120

Open wanematou opened 2 months ago

wanematou commented 2 months ago

when tasks are over long periods, the months on the graph are confused and the graph is unreadable graphGantastic

aleqsunder commented 2 months ago

Use precision ('day', 'date', 'month', 'year'):

<g-gantt-chart :precision="precision">
    ...
</g-gantt-chart>

Use timeunit slot and display the dates however you like with any conditions:

<g-gantt-chart>
    <template #timeunit="{label, value}">
        ...
    </template>
</g-gantt-chart>
zunnzunn commented 1 month ago

As explained by @aleqsunder , I'd also recommend customizing the time-axis using the mentioned slots in this case. It would make sense for the library to provide a default rendering for such cases though. We'll see...