Coder Social home page Coder Social logo

Comments (9)

neuronetio avatar neuronetio commented on August 18, 2024 2

0.7.6 contain patch for this bug
thanks for report guys!

from gantt-elastic.

sandeepkumarmunige avatar sandeepkumarmunige commented on August 18, 2024 1

Thank you for the fix. its working :)

from gantt-elastic.

neuronetio avatar neuronetio commented on August 18, 2024

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.

neuronetio avatar neuronetio commented on August 18, 2024

Also paste all gantt-elastic options here.

from gantt-elastic.

felipefreitasffs avatar felipefreitasffs commented on August 18, 2024

Same here, I think that's because you're add new tasks and the component is not updating the header

from gantt-elastic.

neuronetio avatar neuronetio commented on August 18, 2024

@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.

felipefreitasffs avatar felipefreitasffs commented on August 18, 2024

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.

image

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.

neuronetio avatar neuronetio commented on August 18, 2024

@felipefreitasffs Do you have any errors in the console?
Copy also state property from Vue Devtools.
chrome_2019-02-01_22-44-18

from gantt-elastic.

felipefreitasffs avatar felipefreitasffs commented on August 18, 2024

@neuronetio There's no errors in cosole.

Follow the state property:

(edited - no needed anymore)

from gantt-elastic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.