Skip to content

Increase max number of packages to compare #2289

Description

@graphieros

On the compare page, the max number of packages to compare was initially set to 4, to avoid layout issues.

Recent improvements allow us to increase this number:

  • data table now has fixed first column, and horizontal scrolling
  • bar charts will grow vertically
  • line chart has an alternative view (sparklines) that can become the default view above n number of compared packages (feat: compare download charts with sparklines #2273)

To be discussed:

  • Do we set a higher limit, or no limit at all ?
  • If we set a limit: 10? 25? 42?

My personal take is we need a limit, not too high, to avoid flooding the dom, probably 20-30 would be fine.

Activity

  1. added
    frontFrontend, Design
    needs discussionAn idea that needs more discussion to understand the scope and impact.
    on Mar 26, 2026
  2. MatteoGabriele commented on Mar 26, 2026

    @MatteoGabriele
    Member

    Yes! I'm more for the no-limits side. Is better because there won't be any disable states to handle and no configurations to share between things like the compare page and the action bar in the search page.

  3. RYGRIT commented on Mar 27, 2026

    @RYGRIT
    Contributor

    I agree 4 is probably too low now.

    The layout constraints are much better than before, so increasing the limit makes sense. But I would still keep a limit for now instead of going fully unbounded, mostly because of request volume, chart readability, and overall page weight as the number of packages grows.

    My vote would be to:

    • raise it to something like 8 or 10
    • keep the limit shared in one place so compare and package selection stay in sync

    We can always increase it again later if that still feels too restrictive.

  4. graphieros commented on Mar 27, 2026

    @graphieros
    MemberAuthor

    I think we'll need to force the downloads chart to sparklines above 8 or 10, because the combined chart would make no sense. For example: 10 series:

    Image

    This is unreadable, whereas the split view is better:

    Image
  5. MatteoGabriele commented on Mar 27, 2026

    @MatteoGabriele
    Member

    Why do you say that? This looks good to me. At the end of the day, that's what the user wants, right? If they need to see 10 graphs, they can do it. What doesn't make sense to you? Just curious, maybe I'm missing something.

  6. graphieros commented on Mar 27, 2026

    @graphieros
    MemberAuthor

    Why do you say that? This looks good to me. At the end of the day, that's what the user wants, right? If they need to see 10 graphs, they can do it. What doesn't make sense to you? Just curious, maybe I'm missing something.

    My point was that a standard line chart (the combined view, not the sparkline view) does not make sense above a certain number of series. The screenshot I provided above with 10 series is still ok-ish, but give it 5 or 10 more and the tooltip becomes an i-pad. Of course, users can still unselect series from the legend, but I think it makes the whole chart look unprofessional (basically the combined line chart is no longer the fitting presentation for the dataset).

    I think I'm with @RYGRIT in regards to the limit. 10 is probably enough, in which case we can keep both views available without looking like fools.

  7. MatteoGabriele commented on Mar 27, 2026

    @MatteoGabriele
    Member

    let's go with the 10 so we unlock this one ✨

  8. linked a pull request that will close this issuefeat: increase max package compares to 10 #2294on Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontFrontend, Designneeds discussionAn idea that needs more discussion to understand the scope and impact.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions