Livecode 10 Chart Problems

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
andyh1234
Posts: 476
Joined: Mon Aug 13, 2007 4:44 pm
Contact:

Livecode 10 Chart Problems

Post by andyh1234 »

I am still having problems with the chart control in Livecode 10 and iOS.

When I deploy or test an app either on a device or simulator the chart fails to refresh when I set the csvdata property of it to a new value.

If I navigate away from the card and then back to it, the chart then refreshes correctly.

Is there a way or command to force the chart widget to update its contents?

Thanks

Andy
Klaus
Posts: 14331
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Livecode 10 Chart Problems

Post by Klaus »

Hi Andy,

did you try the "usual supects" like:
lock/unlock screen
set the csvdata to EMPTY first and then to new data
set the backcolor of this stack to the backcolor of this stack
?

Best

Klaus
andyh1234
Posts: 476
Joined: Mon Aug 13, 2007 4:44 pm
Contact:

Re: Livecode 10 Chart Problems

Post by andyh1234 »

Yes, I tried those, send send update to me in 1 to try to get it out of the stack.

Ive created a small test file to demonstrate the issue and submitted it to Livecode as a bug. It works fine in the IDE but does nothing when compiled to an actual app for iOS.
crokyweb
Posts: 20
Joined: Fri Apr 15, 2022 1:55 pm

Re: Livecode 11 Chart Problems

Post by crokyweb »

I can't seem to get this tooltip (which I see by right-clicking) in the attached graph image to click on it and insert a script. Does anyone know how to help me?
Attachments
Screenshot 2026-08-24 alle 17.09.53.png
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10450
Joined: Fri Feb 19, 2010 10:17 am

Re: Livecode 10 Chart Problems

Post by richmond62 »

I don't think a tooltip can have a script. A tooltip is simply a string attached to an object.

AND a tooltip generally becomes visible when one performs a mouseEnter . . .

I have certainly never heard of a tooltip becoming visible with a right button click.

If a right-click sets the visible of an image or textField that is something else (which could contain a script: as it would be a separate object), but not a tooltip.
crokyweb
Posts: 20
Joined: Fri Apr 15, 2022 1:55 pm

Re: Livecode 10 Chart Problems

Post by crokyweb »

Yet, if you use the chart widget and enter values ​​to obtain a chart like mine, and then right-click on the chart, that tooltip appears, which is not configurable in the chart widget object properties. It's as if there were a Recalculate/Update Chart function; in fact, the symbol is the same, but I can't control it. It appears and is clickable, but it doesn't do anything.
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10450
Joined: Fri Feb 19, 2010 10:17 am

Re: Livecode 10 Chart Problems

Post by richmond62 »

Ah: I did not understand you were referring to a widget.

Widgets do not always conform to standards we expect of LiveCode-native controls.

If you have a look here:

https://docs.livecode.com/docs/LiveCode ... ets/Chart/

you will see all the properties of that widget.
scott_morrow
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 43
Joined: Tue Jun 27, 2006 8:35 pm
Contact:

Re: Livecode 11 Chart Problems

Post by scott_morrow »

I find the chart Widget to draw lovely charts but it does have some odd edges. The fact that it has a property exposed in the inspector palette called "Enable tooltip" (which will show a tooltip of the data label the cursor is over) and also a field in which to enter "tooltip" text (not controlled by the "Enable tooltip" checkbox :D ) and which can show as a second different tooltip simultaneously, is a bit odd but perhaps potentially useful if you want a general tooltip but not a data label. The right-click popup menu to "Reload" doesn't seem to be a menu that LiveCode exposes as editable. (Perhaps it was not editable as built into the underlying Chart.js library that the widget is a wrapper for.) I don't find that "Reload" actually does anything on desktop (for me, just clicking the widget causes it to update) but perhaps it is functional when running in a web version of LiveCode. Web isn't a platform that I have tested it on.
Elementary Software
...now with 20% less chalk dust!
Post Reply