Line chart widget used with live data resizes unpredictably

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
biotope
Posts: 2
Joined: Thu Nov 03, 2016 7:48 pm

Line chart widget used with live data resizes unpredictably

Post by biotope » Fri Nov 04, 2016 4:15 am

LiveCode 8.1.1 Build 14008

Using Line Graph widget to display live temperature information extracted in LC from a comma delimited .txt (log) file.
Using

Code: Select all

export snapshot from this cd of this stack to file "LIVEtempStream.jpg" as JPEG
to produce a JPEG which I upload to my FTP servers (still within LiveCode).
A new JPEG is uploaded every 5 minutes and displayed HERE… (see link bellow)

My problem: the chart won't keep still over time and stretches randomly horizontally,
also, the y axis fills up with redundant values and unevenly spaced numbers.

This makes for quite a spectacular show when I animate all the screen shots (snapshots) together.
See attached bellow a very short, and heavily cropped, .MP4 animation spanning 14 hours of data acquisition.
You can clearly seen the jittery behaviour of the chart in this animation.

Of course, "Lock size and position" for this object has been checked.

Latest Data (CSV) content (copy & paste) from widget:

-24h,11,5,8,6
-22h,11,5,8,6
-20h,10,5,8,6
-18h,10,5,8,6
-16h,10,5,8,6
-14h,10,5,8,7
-12h,10,6,10,8
-10h,10,7,11,10
-8h,11,7,12,10
-6h,11,6,10,8
-4h,11,4,8,6
-2h,10,5,8,6
Live,11,3,7,5

Thank you for your time,
Last edited by biotope on Sat Nov 05, 2016 11:52 am, edited 1 time in total.


biotope
Posts: 2
Joined: Thu Nov 03, 2016 7:48 pm

Re: Line chart widget used with live data resizes unpredicta

Post by biotope » Sat Nov 05, 2016 11:51 am

Thanks Sean!

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

Re: Line chart widget used with live data resizes unpredicta

Post by Klaus » Sun Nov 06, 2016 5:31 pm

Looks like a bug to me, please report it here: http://quality.runrev.com
Thank you!

Post Reply