Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^3: Tk::Chart adding data to displayed graphby cavac (Parson) |
on Oct 23, 2018 at 12:20 UTC ( [id://1224550]=note: print w/replies, xml ) | Need Help?? |
You can still bind normal event handlers as well. Just update whatever variables you need, then call the updateGraph() function manually. Something like:
Tk::Chart is an extension of Tk::Canvas, which has support for Mouse interactions. You probably want to use $canvas->bind() or something similar to get mouse interactions with the canvas as event callbacks. To quote the documentation:
Frankly, i would have to spend a few hours of reading and testing on how exactly this would all work related to your graphs (which i leave as an excersise for the reader), but it sounds promising for what you want it to do.
perl -e 'use MIME::Base64; print decode_base64("4pmsIE5ldmVyIGdvbm5hIGdpdmUgeW91IHVwCiAgTmV2ZXIgZ29ubmEgbGV0IHlvdSBkb3duLi4uIOKZqwo=");'
In Section
Seekers of Perl Wisdom
|
|