Gantt Chart

Comments

17 comments

  • Avatar
    Michael Becker

    Hi Aviad,

    Very nice plugin! Although icon on the widget list for it seems not to work properly.

    Regards,

    Michał

    0
    Comment actions Permalink
  • Avatar
    Evan York

    Silly request but can you attach this plugin as a .zip in addition to .rar?

    0
    Comment actions Permalink
  • Avatar
    Sinu Joseph

    There is an issue with the plugin. There is a lag in the header and the rows because of which the data representation doesnt seems correct.




    Capture.PNG
    0
    Comment actions Permalink
  • Avatar
    Aviad Lotan

    Thank you Michael & Evan for your comments
    I attached a new zip  file with a fix to the icon issue

    Sinu - we will look into that, just 

    Aviad




    ganttWidget.zip
    0
    Comment actions Permalink
  • Avatar
    Sinu Joseph

    Hi All, 

                   I did a work around to solve this issue. 

    • Go to plugins folder
    • Go to Ganttwidget folder
    • Open the file style.css.
    • find .fn-gantt .day, .fn-gantt .date 
    • Change width: 25px;
    • Save the file
    • restart IIS

    Done...

     

    0
    Comment actions Permalink
  • Avatar
    Aviad Lotan

    Sinu, thank you for sharing !
    Grate solution 

    Attached is a fixed version of it




    ganttWidget.zip
    0
    Comment actions Permalink
  • Avatar
    Aviad Harell

    If you want more descriptive tooltips, just search for the following line of code in widget.js

    val1['desc'] = s.queryResult.$$rows[i][0].text + ' / ' + s.queryResult.$$rows[i][1].text + ' / ' +  s.queryResult.$$rows[i][4].text;
    

    and change it to something like this

    var description = "<p>" + s.rawQueryResult.headers[0] + ": " + s.queryResult.$$rows[i][0].text + "</br></br>" 
    + s.rawQueryResult.headers[1] + ": " + s.queryResult.$$rows[i][1].text + "</br></br>"
    + s.rawQueryResult.headers[4] + ": " + s.queryResult.$$rows[i][4].text + "</p>"; val1['desc'] = description;

     

    GanttTooltip.png

    0
    Comment actions Permalink
  • Avatar
    Stuart Crane

    Hello, is there anyway to change the colour of the date range CPA bar from pink to a different colour? Also the rows do not line up, is there any way of changing the plugin so they do?

    0
    Comment actions Permalink
  • Avatar
    Pluripharm IT

    documentation can be found here: http://taitems.github.io/jQuery.Gantt/

    0
    Comment actions Permalink
  • Avatar
    Pluripharm IT

    This plugin depends on the string representation of the from and to date. 

    This may lead to a wrong intepretation of the dates: 

    Date(01 dec 2015) is represented as String(01-12-2015 ) and interpreted by Date.parse() as Date(12 jan 2015)

    Date.getTime() should be used instead.

    This bug in  widget.js can be fixed by using the code below

    //val1['from'] = '/Date(' + Date.parse(s.queryResult.$$rows[i][2].text) + ')/';
    val1['from'] = '/Date(' + s.queryResult.$$rows[i][2].data.getTime() + ')/';

    //val1['to'] = '/Date(' + Date.parse(s.queryResult.$$rows[i][3].text) + ')/';
    val1['to'] = '/Date(' + s.queryResult.$$rows[i][3].data.getTime() + ')/';

    0
    Comment actions Permalink
  • Avatar
    Galin Nikolov

    The plugins doesn't seems to work in the last version of SiSense. Can you correct that?

    0
    Comment actions Permalink
  • Avatar
    rahul singh

    Hi,

    How can I show item wise single row in Gannt Chart.

    For example, for project P-1, if an activity i.e. 'Site Visit' is planned every Friday for one day. Currently, the Gantt Chart will be plotted and will show separate rows for Site visit.

    While, I want to show single row for 'Site Visit' where the chart will be plotted on different due dates.

    Thanks,

    Rahul 

     

    1
    Comment actions Permalink
  • Avatar
    Aware Manager

    Can anyone help with the parameters to adjust to make the left panel wider, e.g. so I don't see ellipses in the Item names?

    0
    Comment actions Permalink
  • Avatar
    Malinda Jepsen

    I am trying to use this in 6.7. When I add the plugin to the folder, the site won't start (IIS). Is anyone using this in 6.7?

    I would also like it to display run times, with the grain of the x axis being a time field rather than date. Is that possible?

    0
    Comment actions Permalink
  • Avatar
    Ian Emmons

    This is really nice. One thing I'd ask for is that the buttons in the bottom just get replaced with scroll bars. I think it makes sense to just match the behavior of the pivot table.

    0
    Comment actions Permalink
  • Avatar
    Giuseppe AINO (Edited )

    A very interesting plug-in, for us is fundamental, thanks very very much for your work.
    Using it we found an incomprehensible problem. Seems that the gantt bar sometime are shift to right for a random number of cells.

    We found a solution for it

    On style.css file change the following class:

    .fn-gantt .leftPanel .fn-wide, .fn-gantt .leftPanel .fn-wide .fn-label {
    width: 225px;
    height: 24px; /* Added */
    }
    //--------^

    .fn-gantt .day, .fn-gantt .date, div#root.fn-gantt .day, div#root .fn-gantt .date {
    overflow: visible;
    width: 25px; /* <--- ex 24px */
    line-height: 24px;
    text-align: center;
    border-left: 1px solid #DDD;
    border-bottom: 1px solid #DDD;
    margin: -1px 0 0 -1px;
    font-size: 11px;
    color: #484a4d;
    text-shadow: 0 1px 0 rgba(255,255,255,0.75);
    text-align: center;
    }

    On jquery.fn.gantt.js make the following code changes

    // change the width property adding 1
    dataPanel: function (element, width) {
    var dataPanel = $('<div class="dataPanel" style="width: ' + (width + 1 ) + 'px;"/>'); /* +1 */

    // In "Week" case switch, from about row 554,
    // add +1 pixel to with property:
    // Fill months
    if (rday.getMonth() !== month) {
    monthArr.push(
    ('<div class="row header month" style="width:'
    + (tools.getCellSize() * daysInMonth + 1) /* +1 to correct offset */
    + 'px;"><div class="fn-label">'
    + settings.months[month]
    + '</div></div>'));
    month = rday.getMonth();
    daysInMonth = 0;
    }

    // In "Default" case switch, from about row 554,
    // add +1 pixel to with property:
    if (rday.getMonth() !== month) {
    monthArr.push(
    ('<div class="row header month" style="width:'
    + (tools.getCellSize() * daysInMonth + 1) /* +1 to correct offset */
    + 'px;"><div class="fn-label">'
    + settings.months[month]
    + '</div></div>'));
    month = rday.getMonth();
    daysInMonth = 0;
    }

    Giuseppe

    0
    Comment actions Permalink
  • Avatar
    Katie Garrison (Edited )

    Hi Giusseppe,

    This month a supported Gantt chart plugin was added to the Sisense Marketplace. You can check it out here.
    If you're interested in this plugin, please reach out to your Customer Success Manager for more information.

    Edit: Thanks for sharing the solution you came up with!

    1
    Comment actions Permalink

Post is closed for comments.