JS Charts/Plots and ChicagoBoss

43 views
Skip to first unread message

develuy

unread,
Aug 19, 2014, 8:48:19 AM8/19/14
to chica...@googlegroups.com
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/


can2nac

unread,
Aug 19, 2014, 1:49:44 PM8/19/14
to chica...@googlegroups.com
so what is your question?

develuy

unread,
Aug 19, 2014, 2:50:32 PM8/19/14
to chica...@googlegroups.com
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ó:
--
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 chicagoboss...@googlegroups.com.
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.

Jesse Gumm

unread,
Aug 19, 2014, 4:23:48 PM8/19/14
to chica...@googlegroups.com
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
> 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

develuy

unread,
Aug 19, 2014, 7:58:10 PM8/19/14
to chica...@googlegroups.com
Many thanks Jesse! I'll try it.

Jesse Gumm escribió:

Evgeny M

unread,
Aug 21, 2014, 8:56:39 AM8/21/14
to chica...@googlegroups.com
Have a look on d3 library - http://d3js.org/
Along with other features It allows drawing graphs from csv/tsv files. So you can just make some of your views return data in csv format.

вторник, 19 августа 2014 г., 16:48:19 UTC+4 пользователь develuy написал:

Jesse Gumm

unread,
Aug 21, 2014, 9:12:10 AM8/21/14
to chica...@googlegroups.com

I've definitely heard good things about d3, though never used it myself, unfortunately.

--
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 chicagoboss...@googlegroups.com.
Visit this group at http://groups.google.com/group/chicagoboss.
Reply all
Reply to author
Forward
0 new messages