Doughnut web charts broken in 2024 R4?

Just downloaded 2024 R4 and tested my project. Not sure if it’s just me, but there are a lot of things that aren’t working properly. Sluggish, some pages don’t open properly (just a blank page), some methods don’t seem to be called, and some buttons seem to be unresponsive. I don’t think I can move to R4 just yet as it would take a ton of testing each individual method and button code

One thing I wanted to check on is the doughnut chart (pie also didn’t work. Didn’t check the others other than the line/bar chart from the examples, which did work). Simply stated, nothing is displayed with the code below from the docs in the chart’s Opening. All settings match that of the example chart project, except I selected Doughnut as the chart type

Var sales() As Double = Array(345890.0, 421934, 456908, 567987)
Var colors() As Color = Array(Color.Red, Color.Green, Color.Yellow, Color.Blue)
Var ds As New ChartCircularDataset("Sales", sales, Colors)
Me.AddDataset(ds)
Me.AddLabels("Q1", "Q2", "Q3", "Q4")

firefox browser shows a javascript error … at my tests with it

Thanks for testing and confirming it’s not just me

Sorry about that @Ryan_Hartz, I’ve just created #78057. You can subscribe there for updates.

2 Likes

While the milestone says 2025r1, as this is a regression, the fix for this issue will be included if there is an earlier release.

3 Likes

Thank you Ricardo! Not sure if you magically did something in the background, but I just noticed the doughnut chart is now working on 2024 R4 (even tested your sample project in the Issue). Maybe yesterday was a fluke… or maybe today was haha

Unless it’s Christmas already, it should be still broken in 2024r4 :sweat_smile:. It will be fixed in 2024r4.1.

are you sure you started the right ide version? the version label is right bottom in status bar.

Well a Merry Christmas then! This is your sample project on a Mac 14.6

wth, does it use external ressources or did my browser cache kidding me …

Did you try it out again today?

i tried today with few lines of code and also just even the example file project ChartDoughnut.xojo_binary_project
just white, but wait there is a firefox update i will install now…
still white … i will try clear caches in ide … stay white …

Tested on Safari, and it worked today. Didn’t yesterday. Though, I just tried it on Chrome, and that still just showed white, like yesterday and what you’re seeing on FF

firefox also edge and chrome at phone and at mac safari …

I think we should just need to wait for 4.1. I originally posted about several oddities going on with my web app in R4 in addition to the chart, and I wonder if they’re related to the holdup with the doughnut charts. When I comment out the code to fill the chart, the rest of the app is functioning better than when it was trying to load the charts. Might be related. I will be working on this update using R3 since that’s been working for me and will wait for R4.1

1 Like

So you think that the sluggish may be to charts?

I have a feeling it could be. For example, the page where the doughnut chart is, I have a label which shows the percent. The doughnut is for visual appeal of the percent. When the page loads, the label initially shows as “Loading…”. The calculations are run, and the chart and label update, respectively. This takes merely a second to display. When testing yesterday in R4, the chart was just a white area, and the label remained as “Loading…”. Today, once I commented out the parts related to the chart, the label displayed the percentage as expected, taking the 1 second to complete the calculation and display

On the same page, I also have a listbox that displays 10 rows of data. Same occurrence as the label. The listbox was not filled when the chart code was active, but once commented out, it loaded the data

:man_shrugging:

1 Like

I’m seeing the same thing with my web project in 2024 R4

Please give 2024r4.1 a try (we’ve just released it). It should solve this issue.

3 Likes

@Ricardo_Cruz
can you have a look why line chart for web is interpolated and desktop not?