Comments (6)
When I removed moment from the lib, there were some issues left with timezones and headers. I'm working on it. Can you please tell me your timezone and header configuration?
from svelte-gantt.
from svelte-gantt.
Thanks for reporting this bug, svelte-gantt
currently has an issue with months because it takes a month as a 30 day duration, when it actually varies from 28 to 31, not going to be an easy fix for me, but I'll do my best
from svelte-gantt.
@ANovokmet Hey, I am thinking about using svelte-gantt for my project.
The correct display of month is crucial, any idea when you plan to address this issue?
I think that I could manage to implement calender weeks myself.
from svelte-gantt.
The display of months should be good with the last update (4.0.6 beta), let me know if it's not the case ๐
from svelte-gantt.
@V-Py the problem is gone for months but persists for quarters
columnOffset: 14,
columnUnit: "day",
magnetUnit: "day",
magnetOffset: 1,
headers: [
{
unit: "month",
format: "YYYY[Q]Q",
offset: 3,
},
{ unit: "month", format: "MM", offset: 1 },
],
and years
columnOffset: 14,
columnUnit: "day",
magnetUnit: "day",
magnetOffset: 1,
headers: [
{
unit: "year",
format: "YYYY",
offset: 1,
},
{ unit: "month", format: "[Q]Q", offset: 3 },
],
in the second screenshot, the two events are actually in 2022, but displayed in 2021.
Maybe reintroducing moment or something equivalent as a dependency could facilitate a lot of these calculations.
from svelte-gantt.
Related Issues (20)
- Expanded only work correctly for the first row HOT 1
- Make an option to print the entire gantt HOT 3
- dateAdapter HOT 1
- Custom styling for the whole gantt chart in svelte with tailwind or custom css? HOT 1
- Cannot read properties of undefined (reading '$$') HOT 2
- Custom task component HOT 1
- Row filtering HOT 2
- External draggable example not working HOT 3
- Can't get the demo to run locally HOT 3
- scaling manually HOT 3
- Fix: querySelector usage in selectTask() throws Uncaught DOMException HOT 1
- Event `gantt.api.timeranges.on.resized` returns previous `from` and `to` values HOT 2
- Collapsing parent rows dynamically results in unexpected child behavior HOT 1
- Block pulling tasks HOT 1
- How could I set the rowHeight for the target single row? HOT 7
- Task Color HOT 1
- Back to full year?
- Cannot synchronize scrolling HOT 1
- Dragging of tasks does not deselect previous selected task HOT 2
- TypeError: Cannot read properties of undefined (reading 'model') when updating rows and tasks HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svelte-gantt.