Giter Club home page Giter Club logo

Comments (28)

giorgi-ghviniashvili avatar giorgi-ghviniashvili commented on May 17, 2024 2

@sharlagelfand I am directly accessing the json files from raw.githubusercontent.com, so once you update them, they will just work. Here is demo.

from datamations.

giorgi-ghviniashvili avatar giorgi-ghviniashvili commented on May 17, 2024 1

@jhofman @sharlagelfand

I modified Sharla's specs and this is what I got:

modified-sharlas-specs.mov
  • added width and height
  • added scale.domain for some padding around grid
  • hid axes

Works better, doesn't it?

from datamations.

jhofman avatar jhofman commented on May 17, 2024 1

Here is the html file with modified specs as constant variables.

Should be possible to view this live using raw.githack.com: https://rawcdn.githack.com/jhofman/datamations/gio/d3/sandbox/vega-gemini/gemini-sharla-specs.html

from datamations.

giorgi-ghviniashvili avatar giorgi-ghviniashvili commented on May 17, 2024 1

@jhofman I fixed "drop in" effect. The reason of it was that id fields were missing in last two specs. I just added them. @sharlagelfand please always make sure to include ids. If no ids are provided, it just deletes old points and then draws, but with ids, it just updates (translates).

Screen.Recording.2021-04-16.at.11.36.58.mov

from datamations.

giorgi-ghviniashvili avatar giorgi-ghviniashvili commented on May 17, 2024 1

from datamations.

giorgi-ghviniashvili avatar giorgi-ghviniashvili commented on May 17, 2024

@jhofman here are the json specs for vega and gemini.

from datamations.

giorgi-ghviniashvili avatar giorgi-ghviniashvili commented on May 17, 2024

@jhofman Specs generated by Sharla. 01-initial, 02-intermediate, 03-final.

sharla-specs.mov

from datamations.

giorgi-ghviniashvili avatar giorgi-ghviniashvili commented on May 17, 2024

Here is the html file with modified specs as constant variables.

from datamations.

jhofman avatar jhofman commented on May 17, 2024

this looks great @giorgi-ghviniashvili!

next step is the transition between the grouped dot plot and the scatter plot. does that seem feasible?

from datamations.

giorgi-ghviniashvili avatar giorgi-ghviniashvili commented on May 17, 2024

@jhofman yes, it is feasible, I will just need a vega specification for scatter plot. We already have scatter plot with vega, but circles are stacked on each other. I think Sharla should calculate X values in such a way that they are spread out and not colliding.

from datamations.

jhofman avatar jhofman commented on May 17, 2024

@giorgi-ghviniashvili, in the meantime can you work on getting a transition to work between the last infogrid plot that doesn't have an axis and the first scatter plot which does. seems like a naive version of this breaks in gemini because the axis object is null in the initial frame.

maybe the style or domainOpacity/tickOpacity/labelOpacity attributes listed here can be used?

from datamations.

giorgi-ghviniashvili avatar giorgi-ghviniashvili commented on May 17, 2024

@jhofman see demo.

  • width = container and height = container, did not really worked for animations, so just used constants.
  • refactored files to json files into a folder. (I know I could just load from Sharla's branch, but I needed to make adjustments myself).

Check it.

from datamations.

jhofman avatar jhofman commented on May 17, 2024

@giorgi-ghviniashvili very nice.

it looks like the points just "drop in" from the top between 03-final and 04-jitter-coords. can you instead make it so that the points in the grid in 03-final move to their positions in the 04-jitter-coords along some continuous path (like a line?)

is that feasible w/ gemini?

from datamations.

giorgi-ghviniashvili avatar giorgi-ghviniashvili commented on May 17, 2024

@jhofman the line should be like a tail effect like this one? Tick Tail effect to see it. Or it should be a straight line from source to target?

I will take a look at line generating with vega.

About the "drop in", yes I will take a look and see how to achieve this.

from datamations.

jhofman avatar jhofman commented on May 17, 2024

from datamations.

giorgi-ghviniashvili avatar giorgi-ghviniashvili commented on May 17, 2024

@jhofman Instead of customising gemini specs ourselves, we should use gemini's recommendations, which generates gemini specs itself and produces better animations, with no errors!

Screen.Recording.2021-04-16.at.13.05.52.mov

from datamations.

giorgi-ghviniashvili avatar giorgi-ghviniashvili commented on May 17, 2024

@jhofman Instead of customising gemini specs ourselves, we should use gemini's recommendations, which generates gemini specs itself and produces better animations, with no errors!

Screen.Recording.2021-04-16.at.13.05.52.mov

from datamations.

giorgi-ghviniashvili avatar giorgi-ghviniashvili commented on May 17, 2024

@jhofman I don't understand why should we draw 100 lines, it will be a mess. But let's keep this for our live session.

from datamations.

jhofman avatar jhofman commented on May 17, 2024

@giorgi-ghviniashvili, as per #20, next step is to animate the four group version of the plot here.

from datamations.

giorgi-ghviniashvili avatar giorgi-ghviniashvili commented on May 17, 2024

@jhofman I just plugged in the specs that @sharlagelfand provided, and it looks like this:

plot-degree-workplace.mov

Using gemini recommendations. I have not changed anything in specs, only setting width and height, because container option does not work for animation.

from datamations.

giorgi-ghviniashvili avatar giorgi-ghviniashvili commented on May 17, 2024

About the console error, it is thrown on mouse move on chart area, so I fixed it with pointer-events: none.

Also @sharlagelfand please use https://vega.github.io/schema/vega-lite/v5.json instead of v4.json.

from datamations.

giorgi-ghviniashvili avatar giorgi-ghviniashvili commented on May 17, 2024

I also upgraded vega-lite version to latest v5.

from datamations.

giorgi-ghviniashvili avatar giorgi-ghviniashvili commented on May 17, 2024

Here is the html file.

from datamations.

sharlagelfand avatar sharlagelfand commented on May 17, 2024

@giorgi-ghviniashvili unfortunately vegawidget doesn't support vega-lite 5 yet. there's an issue in the repo to develop it, and I'll drop in there and ask about progress, but for now is it a major issue to continue using v4?

I also noticed from the animation above (which looks great!) that there must be an issue with some of the IDs I exported - between the 3rd and 4th frame the points should just change positions, not colours - I'll look into that and provide updated specs.

from datamations.

sharlagelfand avatar sharlagelfand commented on May 17, 2024

Updated coordinates are here @giorgi-ghviniashvili - only 4-6 have been updated so that the ID tracks consistently with the data. thanks!

from datamations.

jhofman avatar jhofman commented on May 17, 2024

This looks great overall, and very encouraging that it "just worked" to drop in the new specs.

Curious if anyone has opinions on the group by operation being shown in two parts (degree first, then degree + workplace). I kind of like it, but understand it could be confusing to people. Perhaps it's not a problem if there are enough words or labels in the animation (as in the version we used in our experiments / paper).

@dggoldst, curious if you have thoughts. (see here).

from datamations.

jhofman avatar jhofman commented on May 17, 2024

Looks like we're now faced with an instance of #25 here for the group-by step, because as is it's impossible to know what the second grouping variable is until you get to the final frame.

let's brainstorm more at next meeting.

from datamations.

jhofman avatar jhofman commented on May 17, 2024

think we're good on this one as well, specific problems now have their own issues.

from datamations.

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.