Giter Club home page Giter Club logo

Comments (15)

giorgi-ghviniashvili avatar giorgi-ghviniashvili commented on June 14, 2024 2

@willdebras can you remove facet.column.sort and facet.row.sort array on R side? That causes the issue.

image

from datamations.

willdebras avatar willdebras commented on June 14, 2024 1

Yep :) It's like this in main now after merge from yesterday, returning ["mean of", "variablename"]. Just hadn't pulled those changes yet.

from datamations.

jhofman avatar jhofman commented on June 14, 2024

this might have to do with facet sorting in the spec?

from datamations.

willdebras avatar willdebras commented on June 14, 2024
Viewer.Zoom.2022-03-31.16-07-11.mp4

Removing these sort calls fixes this. It looks like it doesn't introduce issues in other places, so I am going to just commit this to main.

from datamations.

giorgi-ghviniashvili avatar giorgi-ghviniashvili commented on June 14, 2024

@willdebras that's great. Could you please also make sure that the y axis titles are not bigger than the facet height? Instead of mean(bill_length_mm), use ["mean", "bill_length_mm"] and it will be fully fixed.

from datamations.

jhofman avatar jhofman commented on June 14, 2024

almost there---sorting of the rows changes part way through, see here:

Screen.Recording.2022-04-01.at.9.42.11.AM.mov

from datamations.

willdebras avatar willdebras commented on June 14, 2024

Might need to revert this, as it keeps the sorting consistent with group_by and mutate frames 1ac1cf5

from datamations.

giorgi-ghviniashvili avatar giorgi-ghviniashvili commented on June 14, 2024

@willdebras alright, right now, I brought back the sorting and trying to fix the other way around.

from datamations.

giorgi-ghviniashvili avatar giorgi-ghviniashvili commented on June 14, 2024

@jhofman @willdebras I found out that vega-lite facet sort does not work at all and that's why it has this issues.

The issue: vega/vega-lite#5937

The image:
Screen Shot 2022-04-01 at 19 51 07

So I guess it is better to remove sorting, unless we hack that too :D

Play with this vega example

from datamations.

willdebras avatar willdebras commented on June 14, 2024

What's your recommendation as far as specs, @giorgi-ghviniashvili? Should I remove all sorting? Removing the facet sorting from summarize spec generation de-syncs it from the group_by(). It seems if we sort all, we get the weird grid. If we unsort in this step, we get the weird shifts from the group_by().

from datamations.

giorgi-ghviniashvili avatar giorgi-ghviniashvili commented on June 14, 2024

@willdebras this pr #169 removes sorting from generateGrid (group_by()), so I think it worths testing and if that works, then we are good to go. Since the facet sorting does not work in vega-lite at all, we don't need them. Please test that PR and let me know if that syncs up with the other steps.

from datamations.

willdebras avatar willdebras commented on June 14, 2024

Thanks! I will test in the morning my time and confirm all is good.

from datamations.

jhofman avatar jhofman commented on June 14, 2024

from datamations.

willdebras avatar willdebras commented on June 14, 2024

@giorgi-ghviniashvili's PR looks like it works fine from my testing, but I want to spend another 30-45 minutes today or tomorrow testing that it doesn't cause issues with the new mutate stuff, i.e. that we don't accidentally trigger a rearrange with the grouped mutations. going into a faceted summarize. I can confirm tomorrow that that is good to merge and then we are all set!

from datamations.

willdebras avatar willdebras commented on June 14, 2024

I've tested this a bit more and it looks good to go to merge Giorgi's PR. This should be fixed now!

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.