Issue with Charts Beta


Team ID:

  • [https://go.glideapps.com/o/2PmUyqXc2oVBIz3zrsnK]

App ID:

  • https://go.glideapps.com/app/I5ba31gPbdIapkKTs4My/layout

Description

  • I’m using the Chart Beta, in Stacked Bar mode, to display my stock of wine bottles, per vintage and color
  • I have in X Axis the vintage years as defined per my database values (number entered by user, converted to date)
  • In Y Axis, I sum up the stock of bottles per color of wine
  • It appears there is an issue with the values at the X Axis borders. Typically, in my data, I have a stock of 2 bottles of Champagne, vintage 2018. It is the youngest vintage for Champagne I have. But when I display the vintages per year in that chart, for my Champagne bottles only, the year 2018 does not appear in the X Axis, which stops at 2017. Any idea of what’s happening?

What are you using to convert these to “date”? What does the original input look like?

Hi TinhDinh

Thanks for your rapid answer.

The original column is a Number-type one. Then I translate it in a Template-one, which I transform into a date through a Text to Date column. My constraints driving this approach :

  • I want the user to only have to fill a year, not a full date, when adding a wine to the database
    I found the Number as the best way to do it
  • I need the vintage to be a date value, so that in the chart, the X axis does properly display all the years, including the ones with no stock

Thanks

I think the way of converting that is bringing problems to the table because originally it’s not a true date object per se, and I’m not sure if the chart sees your “Text to Date” column as date also.

I don’t have a good workaround for you. Does this also mean if you want stacked bars of different wines in the same year, you also need to input them as different columns on the same row, opposed to multiple rows with a single “stock” column?

To my understanding, the chart does see my column as a date. Because date-related options for X Axis appear when I select it as X axis, and don’t when I select another column.

This is in fact what allowed me to truly have years in X axis, including empty ones. As opposed to when I chose the Number column (original user entry), I only get the years where there are values: the numbers are not considered as years.

As per your question for the rendering of stacked bars, not so sure to have understood it. But what I get is what I want : all colors are stacked into one bar for the same year (see below).

So is the chart you show just above the intended result? Is the issue now just “2017/2018 doesn’t show up”?

Yes, the chart looks exactly as I want it. The issue is only with X axis acting strangely. To elaborate on the bug I found:

Without any filters, I see the right amount of stock for 2018 vintage year. It displays 6 red wines, and 3 white ones. Of which 2 are Champagne:

But when I select my filter to show only Champagne wines, the 2 bottles of 2018 are not displayed in my chart:

Whereas, in my collection view, filtered by the same filter, I do see the 2 bottles of Champagne 2018…

1 Like

Is it possible to allow me to access the app and let me know how to navigate to that screen? I think it’s better to take a direct look at the data source. You can share an invite link through DM.

Last update:

  1. In fact, I have the issue without any filters applied. The first graph shared stops in 2023, whereas I do have data for 2024.
  2. I tried to change the date (1st of February to mid year or end of year) - no change
  3. After discussions with ThinhDinh, it does appear to be an issue with the chart component itself.

Hope a patch will be made soon!

1 Like

Yes, I’ve been using the new chart component quite a bit lately and it has serious issues displaying any computed values from glide big tables. Does that happen to be the case for you?

1 Like

The case here was something wrong with the beta chart’s “year” version (it displays other years without problem but refuses to display the last one in Thomas’ database). He was using Text to Date for the value that the chart works with.

It’s a normal table.

1 Like