Absolutely. It depends on the charting library you're using, but I'm
sure whatever charting system you use supports json. So you can have
your controller return {json, MyJsonDataForChartingAwesomeness}Or you could a .js file as a view with the erlydtl variables within. Myself, I'd probably just lean toward the json return for the controller, but I suppose it all depends. -Jesse On Tue, Aug 19, 2014 at 1:50 PM, develuy <[email protected]> wrote: > My question is If it's possible to pass controller data to javascript side > as can be done for html with erlydtl templates {{ variable }}, or how is the > best way to plot data with ChicagoBoss? > > Thanks! > > can2nac escribió: > > so what is your question? > > On Tuesday, August 19, 2014 4:48:19 PM UTC+4, develuy wrote: >> >> Hi all, >> >> I'm a fan of ChicagoBoss, i followed it since it was born :). >> Now, I'm trying to use some js charts/plots (*) using ChicagoBoss. >> Could anyone help me how to deal with views (html/js)?. I mean what is >> the "right" way to do this. >> >> Many thanks! >> >> (*) For example: >> http://www.jqplot.com >> http://morrisjs.github.io/morris.js/ >> http://www.highcharts.com/ >> >> > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/62ddc9b4-1ea8-48b5-897b-c26e1cb59a1d%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/53F39C74.7030502%40gmail.com. > > For more options, visit https://groups.google.com/d/optout. -- Jesse Gumm Owner, Sigma Star Systems 414.940.4866 || sigma-star.com || @jessegumm -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/CAPTXyXdzdm0mmWX7KF-BPqHtfJxC1%2BGGgm%2BLYpVcJ3Bro_N5hQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
