Pie chart value labels for Yes/No field missing?

For pie charts based on an enum field, the value key associated with each chart section appears in the legend, in the tooltip that displays when hovering over the section, and if selected as the Label type property also on the chart section itself.

However, for pie charts based on yes/no fields the value key doesn't display anywhere--regardless of whether custom values are entered for the column's Yes/No display values property. The chart appropriately creates a chart section for each value, but there's no indication of which section corresponds to true vs. false. It's extra confusing that only the false section's color appears in the legend, which doesn't even include the color for the true section. If there are blank values, that is labeled and also assigned its own color, which appears in the legend.

Is there a setting somewhere that governs this? Is this a bug?

Data source

dbaum_0-1653264662163.png

 

Chart for each column

dbaum_1-1653264765486.png

 

dbaum_2-1653264791771.png

 

dbaum_3-1653264818303.png

 

Solved Solved
2 34 1,735
  • UX
1 ACCEPTED SOLUTION

Noticed the following in the  September 15, 2022 Release Notes

Bug fixes

ItemDescription
BugCustom Yes/No labels are now supported in chart views.

Indeed it's now working.

Column does not have custom values: Chart labels are Y/N

dbaum_0-1663332223059.png

Column has custom values: Chart labels are the custom values:

dbaum_1-1663332328176.png

FWIW, here's the behavior when the custom value varies across rows.

dbaum_3-1663332712453.png

Custom false expression:

IF(MOD([_RowNumber], 2) = 0, "Even", "Odd")

Data:

dbaum_4-1663333074442.png

It's unclear how AppSheet determines which of multiple custom false values to use as the chart label. Regardless, as we've discussed in this thread, that's an edge case with no self-evident way that it should be handled within current AppSheet functionality and is perhaps consistent with analogous scenarios like column header labels in table views.

 

View solution in original post

34 REPLIES 34

Hi @dbaum Your observation is correct. This seems to be a bug.

The below chart shows a column [Completed] with true / false values does not have labels.

Suvrutt_Gurjar_0-1653277493450.png

One workaround is as follows.

Please create a VC called say [PiWithLabel] with an expression something like 

IF([BooleanCol1], "TRUE", "FALSE") 

Or to show blanks as well :

IFS([BooleanCol2], "TRUE", NOT([BooleanCol2]) , "FALSE", ISBLANK([BooleanCol2]), "BLANK")

Then if you base the chart on this [PiWithLabel] column, it will look like below

Suvrutt_Gurjar_1-1653277831702.png

 

 

 

Yep, that's a logical workaround.

For reference by anyone interested: If you don't need more than just "Y" and "N", your shadow column for the workaround can just use the TEXT() function:

TEXT([BooleanCol1])

 

Steve
Platinum 4
Platinum 4

Escalated.

Thanks. FYI, all, I also reported to AppSheet support (on 5/27/2022).

FYI for anyone following this, here's an update. I heard from AppSheet Support a few days ago. This is partially fixed, and maybe sufficiently for certain use cases (e.g., no custom display values, no blank values). You can see specifics in the following screenshots and exchange with AppSheet Support from 7/1/2022.

dbaum_0-1657065553025.png

dbaum_1-1657065640886.png

 

AppSheet Support

Hi, this is to inform you that the issue has been fixed.
Could you please confirm at your end?

Me

Thanks for working on this. The behavior has changed and is moving in the right direction, but is not fully fixed. A pie chart accurately represents explicit true and false values from Yes/No column that does not include custom "Yes/No display values". However, I observe 2 lingering issues. First, a column's custom "Yes/No display values" should replace the "Y" and "N" labels in the chart, but they don't; the chart uses "Y" and "N" labels regardless of the presence of custom "Yes/No display values". Second, the chart inaccurately represents blank values. Rather than being labeled "[blank]" as occurs for blank values in charts based on other column types, in this case the blank values are labeled "N". Furthermore, they're also aggregated separately from the explicitly false values. So, the pie chart ends up with a "Y" section for the true values, an "N" section for the false values, and another identically labeled "N" section for the blank values. If you're still referencing my app, see the "BooleanCol1" pie chart view and its underlying data.

FYI another status update

AppSheet support contacted me again today saying this was fixed. It remains partially fixed. Now, blank values are not both segregated and mislabeled, but rather segregated and accurately labeled. Non-blank values have suboptimal but not inaccurate labels, which may be sufficient for many use cases.

Following is are the latest details. I reported this issue in May, and then was contacted on June 2, July 1, and August 2. So, if you're tracking this issue for some reason, maybe anticipate another update in early September.

Screenshot

dbaum_0-1659443941630.png

AppSheet Support

Hi, this is to inform you that the issue has been fixed.
Could you please confirm at your end?

Me

Thanks for the continued progress on this issue.

I'm glad to see that blank values remain segregated and are now appropriately labeled.

However, the issue is not entirely fixed because the non-blank values remain inappropriately labeled. When you wrote a month ago to say this issue was fixed, the column's true and false values were labeled in the pie chart using AppSheet's default "Y" and "N" labels that appear elsewhere throughout the platform. Now, they're labeled literally "true" and "false", which is inconsistent with the rest of AppSheet. Furthermore, the pie chart labels should actually use the column's custom "Yes/No display values" to override the default "Y" and "N" labels; see more explanation in our prior communications regarding this issue. Moreover, this intended behavior is explicitly cited in the AppSheet editor UI itself, which says those "Customizable values are applied accross all app views that have Yes/No data types". For example, in the column in my app that I pointed you too, "Custom False" and "Custom True" should appear instead of "false" and "true" (and even instead of "N" and "Y").

FYI for anyone who happens to be tracking this, here's what I heard from AppSheet Support today--the issue is apparently acknowledged and being considered in some fashion.

AppSheet Support

please be informed that this issue is currently under clarification. I will update you as soon as possible.

"Under clarification" is nonsense.

FWIW, more frequent updates recently. Today's status:

AppSheet Support

the issue is still under clarification.

Thanks for the updates @dbaum 
You are doing an excelent job to help this platform.

If only there were actual AppSheet creators/users in charge of the backend, this kind of problems could be solved by common sense instead of sweat and tears from people like @dbaum 

@pravse @Summer1 @amyplin 

Thanks for the kind words, @SkrOYC. I've been here just a few months and already learned tons from you and others--not just about how to use AppSheet effectively, but also about how to contribute to the community.

AppSheet Support leaves plenty to be desired, and I do think being transparent about that reality is worthwhile--both to encourage improvements and to make new users aware. I'll also note that I understand there can be myriad challenges to providing effective support and I have tremendous empathy for those responsible for doing so. As a software product owner in the company I work for, I certainly wish that I had greater capacity to remediate more bugs as well as to maximize all staff's proficiency in communicating to users about the status of issues in the process of resolution.


@dbaum wrote:

AppSheet Support leaves plenty to be desired


Support, Marketing, Sales and more, basically the Google Team that took AppSheet as a platform.
Even the new community is nowhere near as useful as Discourse. I mean, we all know how support is slow, marketing is selling us smoke (look at the about.appsheet.com page) and sales takes weeks to just tell people the enterprise plan pricing. The community team is doing it's best to make this GCC platform a little bit more useful by coping some of the basic features of Discourse but to be honest, we can make something look like other thing, but won't be that thing ever

Here's today's latest monthly incremental step forward.

AppSheet Support

Hi, please be informed, that the issue has been resolved. Please confirm on your end.

Me

The issue is not fixed yet--at least not for the very scenario I detailed for you the last time you reported it was fixed. Here's the behavior I observe.

  • Test case A: Yes/No column does not include custom Yes/No display values
    • Chart labels use "Y" and "N"
      • This is consistent with the rest of AppSheet.
    • Test case status: Pass
  • Test case B: Yes/No column includes custom Yes/No display values
    • Chart labels use "true" and "false"
      • This is inconsistent with how these values are displayed throughout the rest of AppSheet, where "Y" and "N" are used in the absence of custom Yes/No display values.
      • This contradicts the AppSheet editor's description of custom Yes/No display values, which says that they are used in "all app views".
    • Test case 2 status: Fail
Here are screenshots to illustrate these test cases using the following Yes/No columns:
  • BooleanCol1 includes custom Yes/No display values
  • BooleanCol2 does not include custom Yes/No display values
Table view showing values for both columns as expected
dbaum_13-1661815689723.png

 

Chart view showing values as expected for test case A
dbaum_12-1661815618281.png
 
Chart view showing unexpected values for test case B
 
dbaum_10-1661815433379.png

 

 

Attn @Arthur_Rallu 

Today's update: It remains a work in progress.

AppSheet Support

Hi, this is to inform you that it needs more time to fix the issue.

Today's update follows at the end of this post.

Meanwhile, in case it hasn't occurred to others: I recently realized that there's some complexity to this given that Custom False and Custom True values are expressions. It may be most typical to simply use a single explicit string value for each, but theoretically at least the custom false values could vary across rows, and likewise for the custom true values. In such cases, there's not an obvious custom label to use as a chart label. The recently updated behavior of using "Y" and "N" might be the best available option. That said, the vast majority of use cases might likely involve only a single custom value for false and a single custom value for true and would benefit from those custom values being applied as chart labels.

AppSheet Support

please be informed that this issue is currently under clarification. I will update you as soon as possible.


@dbaum wrote:

there's not an obvious custom label to use as a chart label. The recently updated behavior of using "Y" and "N" might be the best available option


I don't think so. It should respect the custom label no matter what, the same way we can have a VC with AppFormula as row label

Here's a hypothetical scenario of the type I was referencing.

Yes/No column properties:

  • App formula: [ColumnX] > 0
  • Custom false: IF(ISBLANK([ColumnX]), "Pending", "Confirmed negative")
  • Custom true: "Confirmed positive"

My point was that, in this case, it's not straightforward what the the pie chart label should be for the pie section representing the false values. For sure, the multiple custom labels for false values should be used when displaying row-level date; however, there's not a clean way to handle determining the label for values aggregated across rows.

I get it, since it's aggregated there can be multiple false.
In this case, I think we should have a field inside the localize tab for a default true and false

This is also a problem with the labels used in grouping in aggregate views, and with column display names.

Yep! Just try to make a Table View including a column with a Display Name that has an expression @dbaum 

Right. The way I've found around that is:

IF(CONTEXT("ViewType") = "Table", "default column display name", "row-specific column display name")

For custom true/false values, using CONTEXT doesn't affect pie chart labels--apparently, any expressions in those column properties are not even referenced in the first place when AppSheet determines chart labels.

And what is shown now using the Desktop preview where CONTEXT() misbehave? Just curious as my "View" button on inline views is messed up

Good question. I haven't taken time yet to explore the new Desktop view functionality.


@SkrOYC wrote:

default true and false


That's a nice idea--although, ideally it would be a column property not a universal app property.

I wonder whether evermore frequent status notifications mean anything... Here's today's.

AppSheet Support

Hi, this is to inform you that it needs more time to fix the issue.
Thanks for your understanding!

Just be glad someone is actually looking at the ticket and it hasn't been abandoned. That said, I would imagine this bug is a low priority.


@dbaum wrote:

I wonder whether evermore frequent status notifications mean anything... Here's today's.


Keep it up!

FWIW, status notifications are now reliably every 3 business days. Today's message:

AppSheet Support

Hi, this is to inform you that it needs more time to fix the issue.
Thanks for your understanding!

Noticed the following in the  September 15, 2022 Release Notes

Bug fixes

ItemDescription
BugCustom Yes/No labels are now supported in chart views.

Indeed it's now working.

Column does not have custom values: Chart labels are Y/N

dbaum_0-1663332223059.png

Column has custom values: Chart labels are the custom values:

dbaum_1-1663332328176.png

FWIW, here's the behavior when the custom value varies across rows.

dbaum_3-1663332712453.png

Custom false expression:

IF(MOD([_RowNumber], 2) = 0, "Even", "Odd")

Data:

dbaum_4-1663333074442.png

It's unclear how AppSheet determines which of multiple custom false values to use as the chart label. Regardless, as we've discussed in this thread, that's an edge case with no self-evident way that it should be handled within current AppSheet functionality and is perhaps consistent with analogous scenarios like column header labels in table views.

 

Good to know these updates. Thank you @dbaum 

And another entry today in this case study in AppSheet support...

AppSheet Support

Hi, this is to inform you that we need some more time to fix the issue.
Thanks for your understanding!

Me

AppSheet release notes from September 15, 2022 indicate this bug was fixed, and it looks to be addressed for the main use cases. See screenshots in the community post on this topic. Are further improvements still planned?

And, maybe the final entry

AppSheet Support

yes, it was fixed, it just should have rolled out around a week or so.
So, thanks for the confirmation!

Ugh. Support is a disaster.

Top Labels in this Space