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")
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
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
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
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