Re: [Trac] Data-based graphics in Trac
the google charts API http://code.google.com/apis/chart/docs/making_charts.html is very nice for externalizing server-side data-driven image generation, so it's worth looking at. Combining a made chart with an image map http://www.w3schools.com/TAGS/tag_map.asp would be trivial, for a sufficiently loose definition of trivial. -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
RE: [Trac] Data-based graphics in Trac
David Nicol wrote: the google charts API http://code.google.com/apis/chart/docs/making_charts.html is very nice for externalizing server-side data-driven image generation, so it's worth looking at. Combining a made chart with an image map http://www.w3schools.com/TAGS/tag_map.asp would be trivial, for a sufficiently loose definition of trivial. We already use the workload and burndown charts from a plugin that uses the Google API. Setting aside concerns having our data moving through the cloud, we've run into problems with the URL for a reasonably busy chart being too long so we end up with a failure to invoke the API and an empty or missing graph. We really want to render locally. But thanks. -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Re: [Trac] Data-based graphics in Trac
On Thu, Nov 11, 2010 at 12:55 PM, David Nicol davidni...@gmail.com wrote: the google charts API http://code.google.com/apis/chart/docs/making_charts.html is very nice for externalizing server-side data-driven image generation, so it's worth looking at. Combining a made chart with an image map http://www.w3schools.com/TAGS/tag_map.asp would be trivial, for a sufficiently loose definition of trivial. JFTR, and there are visualizations (GViz API) based on this API as well ... -- Regards, Olemis. Blog ES: http://simelo-es.blogspot.com/ Blog EN: http://simelo-en.blogspot.com/ Featured article: -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Re: [Trac] Data-based graphics in Trac
On Thu, Nov 11, 2010 at 12:59 PM, Chris Nelson chris.nel...@sixnet.com wrote: David Nicol wrote: the google charts API http://code.google.com/apis/chart/docs/making_charts.html is very nice for externalizing server-side data-driven image generation, so it's worth looking at. Combining a made chart with an image map http://www.w3schools.com/TAGS/tag_map.asp would be trivial, for a sufficiently loose definition of trivial. We already use the workload and burndown charts from a plugin that uses the Google API. Setting aside concerns having our data moving through the cloud, we've run into problems with the URL for a reasonably busy chart being too long so we end up with a failure to invoke the API and an empty or missing graph. JFTR , this wouldn't happen using GViz API since the contents are retrieved from the given URL (not URL-encoded ...). We really want to render locally. But thanks. TracGViz may be suitable for this as well , and there are actually many ways to get there ... one of them (the easiest | straightforward ???) may be to implement Dojo data sources to consume data formatted using GViz wire-protocol . Hence , all Dojo data-enabled widgets would be there for you OOTB . -- Regards, Olemis. Blog ES: http://simelo-es.blogspot.com/ Blog EN: http://simelo-en.blogspot.com/ Featured article: -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Re: [Trac] Data-based graphics in Trac
Hi, Chris ! On Sat, Nov 6, 2010 at 7:57 AM, Chris Nelson chris.nel...@sixnet.com wrote: I want to create some new graphics based on information in the Trac database. My current thought is a macro that takes some arguments to control a query, gets the data, and emits SVG. Some Googling suggests SVG should work OK with Trac. But there seem to be a lot of ways to do this. Does anyone have any wisdom to imparts about TracImageSvgMacro vs. SvgMacro or maybe PyChart (http://home.gna.org/pychart/) or pySVG (http://codeboje.de/pysvg/) or SVG Charts (http://pypi.python.org/pypi/svg.charts)? Now that you are after this I think this could be a great opportunity to add local chart capabilities to TracGViz . This plugin is about representing data using tables, filtering using custom SQL, and transmitting it to remote locations (e.g. user browser) mainly for visualization purposes. I have even thought about the possibility of using it as the foundations to build a replacement for TracReports (but have no time ... :( ...). In any case you should be able to use SVG, matplotlib, GraphViz ... but you could also dump the data directly to the browser and render it using HTML5 canvas (AFAICR this is the way Hg draws the revision graph). One awesome framework that eases this task is Rafaël (AFAICR), but there are further options out there. -- Regards, Olemis. Blog ES: http://simelo-es.blogspot.com/ Blog EN: http://simelo-en.blogspot.com/ Featured article: -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Re: [Trac] Data-based graphics in Trac
On Mon, Nov 8, 2010 at 8:36 AM, Olemis Lang ole...@gmail.com wrote: In any case you should be able to use SVG, matplotlib, GraphViz ... but you could also dump the data directly to the browser and render it using HTML5 canvas (AFAICR this is the way Hg draws the revision graph). One awesome framework that eases this task is Rafaël (AFAICR), but there are further options out there. That's not quite right: Raphael is a Javascript framework for drawing svg (vector graphics) directly in the browser, embedded in an HTML document -- *not* HTML5 canvas (bitmaps). http://raphaeljs.com I've been using Raphael and its graphing extension g.raphael in a (non-Trac) project recently, for visualizing datasets from a simulation game and interactively exploring the data relationships. I've been pretty happy using Raphael for this .. but if you're going to go with client-side rendering there's a whole slew of options. One I've been wanting to check out is http://vis.stanford.edu/protovis/ which, at first glance, looks like it's both more high-level and more flexible than most charting frameworks. (g.raphael, by contrast, is quite flexible, but only at a pretty low level; it does the simple things easily, but you have to interact pretty closely with your data and with SVG tags if you want highly customized behavior. Most of the other tools I looked at were rather inflexible.) Server-side rendering of the data (whether to a bitmap or an SVG document) is probably simpler unless you have particular needs for highly interactive interfaces. I've only done client-side data visualizations though ... so I can't offer any advice on choosing between server-side options. -Ethan -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
RE: [Trac] Data-based graphics in Trac
Ethan Jucovy wrote: ... I've been using Raphael and its graphing extension g.raphael in a (non-Trac) project recently, for visualizing datasets from a simulation game and interactively exploring the data relationships. I've been pretty happy using Raphael for this .. but if you're going to go with client-side rendering there's a whole slew of options. One I've been wanting to check out is http://vis.stanford.edu/protovis/ ... Most of the other tools I looked at were rather inflexible.) Server-side rendering of the data (whether to a bitmap or an SVG document) is probably simpler unless you have particular needs for highly interactive interfaces. ... Server- vs. client-side rendering is an interesting dichotomy I hadn't considered. My immediate need is for a bar chart with some links out to other parts of Trac. I can easily do that with SVG. But a future project is an interactive Gantt which would work a lot like Microsoft Project's WBS/Gantt view and allow, for example, editing links between tasks. I imagine that level of interactivity requires client-side processing. -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Re: [Trac] Data-based graphics in Trac
On Mon, Nov 8, 2010 at 9:07 AM, Ethan Jucovy ethan.juc...@gmail.com wrote: On Mon, Nov 8, 2010 at 8:36 AM, Olemis Lang ole...@gmail.com wrote: In any case you should be able to use SVG, matplotlib, GraphViz ... but you could also dump the data directly to the browser and render it using HTML5 canvas (AFAICR this is the way Hg draws the revision graph). One awesome framework that eases this task is Rafaël (AFAICR), but there are further options out there. That's not quite right: Raphael is a Javascript framework for drawing svg (vector graphics) directly in the browser, embedded in an HTML document -- *not* HTML5 canvas (bitmaps). http://raphaeljs.com Ggg ... My mistake, sorry . There should be JS libs to paint in the canvas out there , somewhere !!! :) I confused Rafael with RGraph (we should get rid of all those R's out there :) . :$ There are also hybrid libs like CanVG which use canvas to render SVG ... Server-side rendering of the data (whether to a bitmap or an SVG document) is probably simpler unless you have particular needs for highly interactive interfaces. I've only done client-side data visualizations though ... so I can't offer any advice on choosing between server-side options. In general, most of the time client-side data visualizations enhance server performance ... but «most of the time» is not «always» -- Regards, Olemis. Blog ES: http://simelo-es.blogspot.com/ Blog EN: http://simelo-en.blogspot.com/ Featured article: -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
[Trac] Data-based graphics in Trac
I want to create some new graphics based on information in the Trac database. My current thought is a macro that takes some arguments to control a query, gets the data, and emits SVG. Some Googling suggests SVG should work OK with Trac. But there seem to be a lot of ways to do this. Does anyone have any wisdom to imparts about TracImageSvgMacro vs. SvgMacro or maybe PyChart (http://home.gna.org/pychart/) or pySVG (http://codeboje.de/pysvg/) or SVG Charts (http://pypi.python.org/pypi/svg.charts)? Chris -- Christopher Nelson, Software Engineering Manager SIXNET - Solutions for Your Industrial Networking Challenges 331 Ushers Road, Ballston Lake, NY 12019 Tel: +1.518.877.5173, Fax: +1.518.877.8346 www.sixnet.com -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Re: [Trac] Data-based graphics in Trac
Quoting Chris Nelson chris.nel...@sixnet.com: But there seem to be a lot of ways to do this. One more: matplotlib. The new version seems to support SVG, but the good thing is, that you can emit PNG and many other formats, if e.g. your browser doesn't support SVG. We use matplotlib in a web application, not based on Trac, but on Django, and it is really nice. -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.