Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Google Charts API or another???

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
Rob_B
Smarty n00b


Joined: 28 Nov 2020
Posts: 1

PostPosted: Sat Nov 28, 2020 10:52 pm    Post subject: Google Charts API or another??? Reply with quote

Hello,

Can anyone recommend a charts Api that works with smarty templates?

Have used google charts: success with manually declared arrays and absolutely none with parsing json data in data table for a chart. Have tried literal and dlim tags and generally spent far more time than I wish to.

Does anyone know of an api where a DB query can be used to return an array or take a conversion to json and display a chart in a .tpl, preferably keeping any .js out of the .tpl.


Thanks
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Mon Nov 30, 2020 12:32 am    Post subject: Re: Google Charts API or another??? Reply with quote

Rob_B wrote:
Hello,

Can anyone recommend a charts Api that works with smarty templates?

Have used google charts: success with manually declared arrays and absolutely none with parsing json data in data table for a chart. Have tried literal and dlim tags and generally spent far more time than I wish to.

Does anyone know of an api where a DB query can be used to return an array or take a conversion to json and display a chart in a .tpl, preferably keeping any .js out of the .tpl.


Thanks


Frankly I don't understand your issue.
Can you provide a test case you have a problem with?
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP