Xojo2025R1

I was just looking at the pie chart example that comes with Xojo, the example seems to be a good starting point; however, I was hoping to see example of making it interactive.
I see Pressed event available but I have no idea at the moment how to use it.

What I would like to do is to open dialog container with the list making the number represented by slice. How difficult that would be? Can someone please tell me if there is an example perhaps available doing just that?

You should go look at the docs for WebChart. The parameters of the Pressed event are pretty self explanatory.

Well, nothing is easy. I didn’t get to the interaction with pie chart yet, since I wanted to make the pie look a little more user friendly on the page (the page has toolbar, list, some text and the pie chart).

Let’s start with this one question, how do I position legend of the pie chart at the bottom instead of top, or left aligned instead of centered?
There is no info in manual about that. I asked ChatGPT which tried to give me some hints but it ended up like that:

 In **Xojo 2025r1**, `WebChart` (including `WebChartPie`) **does not expose a `ChartOptions` property** directly. So trying to use `ChartOptions` will result in:

> ❌ `Error: Type "WebChart" has no member named "ChartOptions"`

The reason why I am looking into legend now has to do with the layout of the page and the need to update the legend dynamically depending on loading the detail list (pie chart shows summary count off that detail list, there are 5 columns with counts that I have here and this pie legend looks untidy).

But again, if you look at the docs for WebChart, there is no parameter named ChartOptions.

Maybe the issue here is that you’re choosing to believe ChatGPT instead of Xojo when it comes to what’s possible in Xojo.

1 Like

I don’t insist on ChartOptions or anything, all I was doing is to try to make the Pie Chart look a little different, this is not critical and I am not an expert in Xojo, just trying to ask around. The ChatGTP is quick so it makes sense to try, I don’t see it as an issue.
Anyway, thanks for pointing out the docs.