How to implement google chart in iDempiere

257 views
Skip to first unread message

Ray Lee

unread,
Dec 29, 2021, 10:25:00 PM12/29/21
to iDempiere
Hello everyone, 
I have a need to use Google Chart to display the Dashboard of resource management. How do I dynamically modify the data in google.visualization.DataTable in iDempiere?
Are there any examples to refer to?

Thanks
Ray


Timelines_ _ _Charts_ _ _Google_Developers.png


Timelines_ _ _Charts_ _ _Google_Developers.png
https://developers.google.com/chart/interactive/docs/gallery/timeline?hl=zh_t
w

Ray Lee

unread,
Jan 5, 2022, 9:58:37 PM1/5/22
to iDempiere
I create  a refresh button.
To send the Array to the front end by  Script.setContent method. Is this the best practice?


Cursor_和_iDempiere.png

Heng Sin Low

unread,
Jan 5, 2022, 10:11:04 PM1/5/22
to idem...@googlegroups.com
You can use script or wrap it as a zk component (similar to what I've done for billboard at https://github.com/hengsin/idempiere-billboard).


--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/7615c1f1-30e2-449b-819c-bc9aa3b82a99n%40googlegroups.com.

Heng Sin Low

unread,
Jan 5, 2022, 10:13:00 PM1/5/22
to idem...@googlegroups.com
Found this https://github.com/connollyst/zkgooglecharts , perhaps you can give it a try.

Ray Lee

unread,
Jan 6, 2022, 9:39:03 AM1/6/22
to iDempiere
Thanks for the information. It can be useful for me  to develop more effectively.
If I would like to refresh the front-end Chart automatically every minute in the Custom Form, what's your suggestion?
Thank you. 
Sincersly Ray 

Heng Sin Low

unread,
Jan 6, 2022, 9:32:31 PM1/6/22
to idem...@googlegroups.com
If it is a periodic refresh, you can use the Timer component to do that.

Reply all
Reply to author
Forward
0 new messages