Creating a chart in a JSP page with data from MySQL

504 views
Skip to first unread message

Manuel Cerezo

unread,
May 5, 2017, 8:41:28 AM5/5/17
to Google Visualization API
Hey!

I have a doubt...is it possible to create a dynamic chart in a JSP page?

I have the data in my database like (brands, models, etc..) I just wanna show a little graphic with, for example, the number of articles of each brand, and If I add a new model to the database, "refresh" the page adding 1 item to the chart. Or, for example, adding up the total amount of money of my stock, refreshing it in live.

Thanks

Daniel LaLiberte

unread,
May 5, 2017, 10:24:44 AM5/5/17
to Google Visualization API
If you do it right, yes, it is possible to generate the JavaScript necessary in your JSP that will display a Google Chart.  Fetching data from a MySQL database may be done either when the page is generated, with JSP code, or in the generated HTML page once it is in the browser, using the appropriate JavaScript.  Various pages of the Google Charts documentation cover these issues.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/1b792968-447f-411e-8ae1-12d08c07dd47%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages