Web-based Drilldown

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Klyde100
Posts: 5
Joined: Tue Feb 16, 2010 9:40 pm
antibot: No, of course not.

Web-based Drilldown

Post by Klyde100 » Tue Feb 16, 2010 9:57 pm

I've combed the web for examples but I am still not clear on how to do this.
What I've gathered is that my servlet that generates the png has to also generate a map with insets.
This means static, finite datasets for each map points to other pngs that I've already generated.

I tried using the ChartMouseListener but I think that it is for Swing apps only and I cannot get
this functionality from a static png. Am I correct in thinking the static map is the only drilldown
technique for a client-side png?
It looks like I need to pass ChartRenderingInfo object to the SaveChartAsPNG method to get this
to happen. Do I need to create ChartEntities and put them into a ChartEntity collection and pass
it to the ChartRenderingInfo object? Not sure what the ChartEntity needs to include (entity map but
how to do that?).
Could someone show an example of how to do this?

jleech
Posts: 62
Joined: Fri Oct 26, 2007 9:18 pm

Re: Web-based Drilldown

Post by jleech » Fri Feb 19, 2010 5:14 pm

That doesn't sound quite right. The drill-down links can be to other dynamically generated content. The image maps are created dynamically alongside the chart. I am not sure of the details but there should be some examples around.

If SVG is a possibility for you (meaning your users are not using Internet Explorer, or its acceptable for IE users to have limited functionality), an alternative is to output your charts in SVG, and instrument them with javascript-based mouse interactivity. See the paper I presented at SVG Open 2009 for details - http://www.svgopen.org/2009/papers/7-En ... Mechanism/

-Jonathan

Locked