Coder Social home page Coder Social logo

jquery.gantt's People

Contributors

alessandrocalu avatar andrejs avatar dmromanov avatar easterism avatar eneasgesing avatar kichawa avatar korri avatar kripper avatar ltvolks avatar mbielanczuk avatar mcavallo avatar nathancolgate avatar roxeteer avatar ryan953 avatar ryoco avatar taitems avatar thunderpaw avatar usmonster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jquery.gantt's Issues

bug in index.html

You have a bug in the preview page. For some reason, the script tag at the bottom of the page is currently:

<script src="js/jquery.fn.gantt.min2.js"></script>

It should be:

<script src="js/jquery.fn.gantt.min.js"></script>

(It also looks like the demo page is way out of date compared with development, but that's a different issue.)

$.browser

Hello, in jquery.fn.gantt.js in line 189 u have

                if ($.browser.msie) { 
                    x -= $(document).scrollLeft();
                    y -= $(document).scrollTop();
                } else {
                    x -= window.pageXOffset;
                    y -= window.pageYOffset;
                }

$.browser is removed from jquery 1.9, so it would be nice to upgrade it.

In case someone wants to do that , i found that:

link jQuery.browser() removed

The jQuery.browser() method has been deprecated since jQuery 1.3 and is removed in 1.9. If needed, it is available as part of the jQuery Migrate plugin. We recommend using feature detection with a library such as Modernizr.

navigation using buttons

if the first week is 44 of 2011, for example, and you scroll left and right and end up on week 45, as in the linked img, the navigation buttons to the left won't work, cause 45 - 7 < 41 (44 - 3 blank), but you could just easily put it to 41

image

i've done it so here's the code:
in the core.navigateto, in de default case of the switch

default:
var max_left = (dataPanelWidth - rightPanelWidth) * -1;
var cur_marg = $dataPanel.css("margin-left").replace("px", "");
var val = parseInt(cur_marg, 10) + val;
if (val > 0) { val = 0; } // si veut aller trop loin
if (val < max_left) { val = max_left;} // dans l'autre sens
// if (val <= 0 && val >= max_left) {
$dataPanel.animate({
"margin-left": val + "px"
}, "fast", core.repositionLabel(element));
//}
element.scrollNavigation.panelMargin = val;
break;

Edittable

Hey, was wondering if you would make it possible to edit the events right on the gantt chart?

Large Data Draw Speed

The render speed on large sets is really slow. For some reason Chrome performance is roughly 3x worse than IE9 on my particular example (4,300ms vs. 1,500ms). It almost seems like it's rendering every row, but only showing the first X until you hit next page.

You might want to investigate how many repaints and reflows are being executed. DOM creation via strings might have to be the solution.

onItemClick data is null

Am I missing something or data is allways null in onItemClick? Same thing for rowId in onAddClick.

Draw dependcies between tasks

This is something jsGantt has - the dependencies are drawn based on a list of IDs of tasks. See example at jsgant.com - tasks "Constructor Proc" and "Task Variables".

BTW ID would be nice to have as you can generate basic Gantt from Tasks added to something like Flyspray ;-) or Bugzilla.

Not visible task at the turn of the year

Not visible task at the turn of the year - ie. for dates:
From: Date(1293874598708)
To: Date(1354268198708)

The gantt starts in 2011, but the bar isn't displayed. It starts not till the last week of december of 2011. In month view it is displayed correct. I have no clue where to search.

new release?

hi, recently we want to add your lib on https://cdnjs.com, v1.1.0 seems to be released long time ago, could you please consider releasing a new version and add a tag for it so that we can add your lib and set git auto-update for the structure different from v1.1.0.
thank you very much!

cdnjs/cdnjs#7005 (comment)

Labels for bars

@florian: "...integrate some kind of label for each bar, which is also displayed in the chartt. E.g. the "name"-field. So that the bar isn't only coloured, but also labeled..."

Export to Excel Functionality Request

Hello.
Requesting for an export to excel or pdf or export as an image functionality of the gantt chart. This would be very helpful for us. Would implementing this functionality be possible? :)

Thanks in advance!

How to use external datasource - asp webservice

Hi all, I am wondering how to use external data source, but not json file, but asp webservice.

If I do this:

source: dataPath + "js/Meetings.js"

gantt is displayed correct,

but if I do this:

source: dataPath + "Meetings.asmx/GetAll" 

I get error:

[InvalidOperationException]: Format żądania jest nierozpoznany dla adresu URL nieoczekiwanie kończącego się w /GetW”.
   w System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response)
   w System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext context, String verb, String url, String filePath)
   w System.Web.Script.Services.ScriptHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String pathTranslated)
   w System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
   w System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   w System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

How to correct this or any ideas how to use asp webservice result?

Please wait message should appear when page loads

Hi,

I noticed that the "Please wait" message is showing after the HTTP request for JSON data is returned to the client.

As a quick test i issued a sleep command for 60 seconds on the server before returning JSON data. During this time the webpage is blank and the "Please Wait..." message does not appear.

After 60 seconds and ALL of the JSON data is returned to the client do i see "Please Wait...". By that time there's no real value anymore for the message since the grid rendering on client browser is very quick.

Would it be possible to change the sequence of the "Please Wait..." message? Ideally it should displayed as soon as the page loads.

I had a look at the code but not really sure where to make the change - If you can point me i can try to update the code.

Thanks for your time.

It is impossible to override the default week calculation

It is impossible in the current code to override the default custom week calculation (or any prototype for that matter) because it is set each time on rendering.

Preferably the prototyping is NOT done on rendering, because that would override the new 'custom' override.

It should be done before applying the plug-in to jQuery (e.g. before $.fn.gantt = function (options) { ).

Because it is already a custom prototype function, there is no functional need to re-apply it every time other than that you want the default version to be the only truth...

week with id "0"

there seems to be a problem with the week id

for the first week of 2014, it shows 0

image

and if you have a value that start Jan 01 2013 to Dec 31 2013
it makes something weird, the item take the size of the label inside :

image

Month view in IE8

@jan:

I get a javascript error in IE8 on load jquery.fn.gantt.js on line 918: find(…).offset().left is null or not an object
The gantt scheme is afterwards empty.

Export to Excel Functionality Request

Hello.
Requesting for an export to excel or pdf functionality of the gantt chart. This would be very helpful for us. Would implementing this functionality be possible? :)

Thanks in advance!

Very long task interval hides other tasks

Jens:
i worked it out and found a bug.

try as data a very long interval like:

{“from”: “/Date(1302203200000)/”, “to”: “/Date(1310508000000)/”, “desc”: “Type: Taskname: Task 3Description: Task desc.”, “customClass”: “ganttRed”},

Only this Entry will be shown, all others are “hidden”

http://imageshack.us/f/64/gantt.png/

New navigation mechanism

New navigation mechanism including:

  • scrolling with mouse wheel
  • dragging data panel horizontally
  • navigate using slider
  • "today" button
  • +/- buttons for zooming

Zooming to hours view.

@fox
Great code can you have a single day view with time?

@jack
Great code! Can you change the “row header year” to “row header day” and “row header month” to “row header hour”?

@marcelo:
I like this very much. But I wonder if there is a simple way to Cutomize hours versus days?
Because I need a time grid of days (line) and hour (column), along with progress bars.

bar_id

To specificly identify bars we need some sort id. Best way to resolve this is to supply them in the data JSON.

Bar labels align

The label is always centered. That means when there is a long task you need to scroll a lot until you get to see the label, at least at days-view.

Week numbers

@florian: "In the weeks view in February 2012 the week 9 is labeled with "8" so that the 8 is displayed twice."

Multiple dependencies?

is it possible to have multiple dependencies?, f.e. you have 3 task, a,b,c, but c needs to start only when a and b has done. and b needs a has done too. thanks a lot!

scrollToToday functionality don't work

Hi
I want to switch to today after the chart is rendered. I guess I have to set the scrollToTOday to true, but my chart always stays at the beginning.

Please assist.

cheers
Martin

Partial Rendering

THe current renderign of right pane isn't optimal, just take the exemple and zoom it to hours to see your browser crash.

The problem is the parseTimeRange function (and the rendering of hour divs). I think the best solution would be to draw only a bit more then what is visible, so it would support almost unlimiter range of values.

Task visibility

Items get lost in the month view when there is more than one per line.

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.