FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
107 stars 18 forks source link

Donut Chart with donut radius not rendering correctly (hole in centre is filled when should be empty) #3239

Open arniigreat1 opened 3 weeks ago

arniigreat1 commented 3 weeks ago

Can we access your project?

Current Behavior

Donut chart with empty space in centre (Donut Hole) with "percent" section label when 100% has filled centre when should be empty. See two screen shots. The empty space should be what's shown, not a filled circle.

This was not an issue before until this latest version. Hope it's a quick fix as just got approved by app store to go live! :D

Expected Behavior

Donut chart should have empty space in centre when 100%

Steps to Reproduce

  1. Add Donut Chart
  2. Set "Donut Hole" Radius to 45
  3. Set "Section Label Type" Percent
  4. Set Data Source as "Single Value"
  5. Start Test
  6. Donut Chart will be complete pie (no hole)

Reproducible from Blank

Bug Report Code (Required)

ITESz/Hqx89gotcE7ZD+LPlAhR8kQ2InarsvhMB9Zww3Jb7oELMlbuvRXGZZZsezYWx6B06lkjoy0db2vdnXDPE5CzuEQ5Q/1ZFcQwL/VkauMpizCpCJdXQkONJTGnKb1p7UpiNAJsZfSE0tig/GSw==

Visual documentation

Screenshot 2024-06-25 at 7 14 52 PM Screenshot 2024-06-25 at 7 14 58 PM

Environment

- FlutterFlow version: v4.1.63+
- Platform: MacOS Desktop
- Browser name and version: Chrome 126.0.6478.115 
- Operating system and version affected: macOS  Sonoma 14.3

Additional Information

No response

msusviela commented 3 weeks ago

I was able to reproduce the issue. I could reproduce it on test mode, however, when run into a local emulator it looked fine. Did you experience the same?

I will send it to the ENG team so they can work on this!

msusviela commented 3 weeks ago

Hi @arniigreat1.
I just got an update from the ENG team.
It looks like this is because test mode is still using the html renderer. This issue will not happen when you actually publish their app. For web publishing, you need to check use canvaskit for rendering the web app (if you're using web, mobile should not have issues).

arniigreat1 commented 3 weeks ago

Hi @arniigreat1.I just got an update from the ENG team.It looks like this is because test mode is still using the html renderer. This issue will not happen when you actually publish their app. For web publishing, you need to check use canvaskit for rendering the web app (if you're using web, mobile should not have issues).

hey @msusviela I published the app on internal testing on android as well before submitting. And the issue is still the same

I provided a simple example for repeating the issue. But in reality the data is dynamic. For example, there's 2 list items, (1) with 100% and (2) with 0%. I think the issue may be because there's 100% for one item, and the remaining items are 0%.

Attached more screenshots, and what I see on my android. You can see there's a difference in color in the donut centre actually, which is telling me this may be a slightly different issue actually. This all wasn't a problem till recently

Let me know your thoughts, and appreciate the prompt response :)

Screenshot_20240626_082256 Screenshot 2024-06-26 at 8 46 28 AM Screenshot 2024-06-26 at 8 46 46 AM

arniigreat1 commented 1 week ago

@msusviela checking in on above. The newer versions, the graphs don't appear when it's 100% instead of a full filled circle