Comments (9)
0.7.6 contain patch for this bug
thanks for report guys!
from gantt-elastic.
Thank you for the fix. its working :)
from gantt-elastic.
Duration should be seconds where 24(days) * 60(minutes) * 60(seconds) = 86400
will be one day.
start
should be string
with ISO 8601 date, milisecond timestamp or Date
object.
Maybe reason why calendar dates are missing is located elsewhere.
Try to investigate dom tree (click on empty calendar) and take screenshot what is going on there.
from gantt-elastic.
Also paste all gantt-elastic options here.
from gantt-elastic.
Same here, I think that's because you're add new tasks and the component is not updating the header
from gantt-elastic.
@felipefreitasffs Could you provide some more info?
Which version are you using?
Paste task and options object here.
Investigate problematic element in dom tree and take screenshot.
Thank!
from gantt-elastic.
Version 0.7.5
If I get the tasks from a ajax request, when I add the task to the array the component do not update the header of the calendar.
I'm developing a vue application to get the issues from the gitlab and plot the gantt chart.
const options = {
title: {
label: 'Your project title as html (link or whatever...)',
html: false
},
taskList: {
columns: [
{
id: 1,
label: 'ID',
value: 'id',
width: 40
}, {
id: 2,
label: 'Description',
value: 'label',
width: 200,
expander: true
}, {
id: 3,
label: 'Assigned to',
value: 'user',
width: 130,
html: true
}, {
id: 3,
label: 'Start',
value: (task) => task.startDate.format('DD/MM/YYYY'),
width: 78
}, {
id: 4,
label: 'Type',
value: 'type',
width: 68
}, {
id: 5,
label: '%',
value: 'progress',
width: 35,
style: {
'task-list-header-label': {
'text-align': 'center',
'width': '100%'
},
'task-list-item-value-container': {
'text-align': 'center'
}
}
}
]
},
locale: {
code: 'en',
'Now': 'Now',
'X-Scale': 'Zoom-X',
'Y-Scale': 'Zoom-Y',
'Task list width': 'Task list',
'Before/After': 'Expand',
'Display task list': 'Task list'
}
}
Vue componente:
data () {
return {
options: options,
tasks: []
}
},
mounted: function () {
this.GitLabAPI.get('issues', {}, (issues) => {
var tks = issues.data.map(issue => {
return {
id: issue.id,
label: `${issue.title}`,
user: `<a href="${issue.assignee.web_url}" target="_blank" style="color:#0077c0;">${issue.assignee.name}</a>`,
start: new Date(issue.created_at),
duration: Math.floor(Math.floor(new Date(issue.due_date).getTime() / (3600 * 24 * 1000)) - Math.floor(new Date(issue.created_at).getTime() / (3600 * 24 * 1000))) * 24 * 60 * 60,
progress: 50,
type: 'task'
}
})
this.tasks = tks
})
}
from gantt-elastic.
@felipefreitasffs Do you have any errors in the console?
Copy also state property from Vue Devtools.
from gantt-elastic.
@neuronetio There's no errors in cosole.
Follow the state property:
(edited - no needed anymore)
from gantt-elastic.
Related Issues (20)
- Calendar vue by chinese
- How to use gantt elastic with angular HOT 1
- gantt chart is not showing HOT 1
- Export Gantt Chart to PDF HOT 1
- Showing full year HOT 1
- "Unexpected value NaN% parsing width attribute" warning when adding task to chart HOT 4
- gantt-schedule-timeline-calendar Transition Schedule HOT 1
- blocks browser when no tasks given (empty array) HOT 5
- will this still be maintained? HOT 2
- style for calendar-wrapper not applied (width) HOT 7
- Subtasks roll up to parent task HOT 1
- Dayjs is not defined HOT 3
- gantt-elastic vs gantt-schedule-timeline-calendar HOT 1
- more tasks for line HOT 5
- exclude holidays HOT 1
- Does it support react? HOT 3
- Load events dynamically HOT 4
- Start hour and end hour in the chart task. HOT 1
- IE support HOT 1
- Calendar vue by weeks/Months/Years HOT 1
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 gantt-elastic.