Skip to content

In a barplot, adding items from the filter makes other items disappear #2127

@Enro

Description

@Enro

Describe the current behavior

I have this barplot which shows the decreasing cost of providers that I have worked with, with their cost broken down by year:

Image

When I add provider D using the filter, the following happens: all the costs observed in year 2026 disappear from all providers other than provider D, meaning that some providers (e.g. W, X) look empty, even though they still occupy their spot in the sorted list, which means that the computation of the total cost isn't consistent with the length of the bar:

Image

When I add provider B using the filter, provider T loses its 2024 costs (thus looks empty), and provider B loses its 2024 costs also. Both still occupy their spot in the sorted list, which means that the computation of the total cost isn't consistent with the length of the bar:

Image

Steps to reproduce

  1. Open the minimal reproducible example https://grist.numerique.gouv.fr/o/docs/9Ph74B2Xed1Z/Bug-depenses-par-prestataire
  2. In the barplot on page "Providers", check that providers F to X are selected in the filter
  3. Reproduce the faulty behavior by selecting either D or B in the "Provider" filter
  4. Check in the summary table in the source data that the values are computed correctly: it's the graph that displays them incorrectly.

Describe the expected behavior

Adding providers B and D to the graph should not make some bars disappear.

Where have you encountered this bug?

Instance information (when self-hosting only)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions