Giter Site home page Giter Site logo

vis 4.19.1 about timevis HOT 12 CLOSED

daattali avatar daattali commented on May 26, 2024
vis 4.19.1

from timevis.

Comments (12)

daattali avatar daattali commented on May 26, 2024

Yes you are correct! I've actually had a few people over the past month email me about nested groups and I've had to tell them that unfortunately I released this package just before nested groups were implemented in visjs.

I've been meaning to update to the latest visjs but I'm swamped with work on other projects and can't do this for at least the next few weeks.

I would very happily accept a PR if you have the time and patience to update the version and ensure current code isn't broken :)

from timevis.

daattali avatar daattali commented on May 26, 2024

@WaitNkill were you able to get nested groups to work with timevis, by providing all the code within R? Or did you use javascript code for nested groups?

I'm looking into updating to visjs 4.19, but there are a couple issues when it runs as an htmlwidget (any item with a time doesn't show up in RStudio Viewer, in order to edit an item you need to double click instead of single click on it). So I want to see if there are benefits to upgrading - if you got nested groups to work that that'd be a nice benefit because several people asked about it

from timevis.

WaitNkill avatar WaitNkill commented on May 26, 2024

@daattali - sorry i originally thought i got it to work- the timeline does show the nested groups, but the collapse and uncollapse is not working. So far all i changed was some R in order for a list to be passed rather than just a df, I also added listener to track timeline.GroupsData to debug, still couldnt figure out the issue, will play with it today and will let you know

from timevis.

daattali avatar daattali commented on May 26, 2024

from timevis.

WaitNkill avatar WaitNkill commented on May 26, 2024

@daattali - When i originally just swapped viz.js, i did notice 2 tabs on your example wasnt showing any data- i did have to reformat the sampledata.R File, and put back the "T" (2014-07-13 T16:00) within the datasets. I'm at home now, but i'll upload what i did when i get a chance, i also incorporated the listview package that way, i can easily edit the data on the fly.

looking over your changes, you just went and changed the update groups api , am i seeing that right? i went ahead and changed the timevis function that way you can pass a nested list through the main function, ( so had to edit all the dataframe checks you had in place).

from timevis.

daattali avatar daattali commented on May 26, 2024

from timevis.

WaitNkill avatar WaitNkill commented on May 26, 2024

@daattali - Hey sorry never got back to you, i realized vis.js is limited on the amount of nesting. So my focus shifted towards buidling out a widget using https://docs.dhtmlx.com/gantt/.

Also after reading some of the issues in vis 4.19, i was going to say you should hold off on this update until they release 4.20, but then i just saw he pushed out 4.20 yesterday.
Im still interested in using vis.js, but not for my current project, I'll let you know if i ever get some free time to contribute on any of your future releases.

Thanks

from timevis.

daattali avatar daattali commented on May 26, 2024

I'll take a look at 4.20, thanks. That other library seems much more feature rich , good luck

from timevis.

daattali avatar daattali commented on May 26, 2024

part of #50

from timevis.

daattali avatar daattali commented on May 26, 2024

Closing because there's an issue about upgrading to a newer version

from timevis.

strazto avatar strazto commented on May 26, 2024

I'm wondering, does nestedgroups work in R, then?
When passing in a list-col (of S3: Glue objects), they seem to be coreced to the following form:
"c(\"Id1\", \"Id2\")"

Is there something I should be doing to make this parse to a JSON array?

from timevis.

Nefcairon avatar Nefcairon commented on May 26, 2024

Sorry to use this issue:
@WaitNkill Were you able to use dhtmlx gantt with R?

from timevis.

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.