Search found 8 matches

by dmacleod
Tue Feb 12, 2008 10:05 pm
Forum: JFreeChart
Topic: Gantt Charts and additional data
Replies: 0
Views: 1732

Gantt Charts and additional data

Is there a way to add text inside of a bar on a Gantt chart? i.e., if this was a bar within a Gantt chart, I'dd like to add some text to it. __________________________________________________ | Some text here | | Different text here | | more text here | |_____________________________________________...
by dmacleod
Tue Jul 31, 2007 8:01 pm
Forum: JFreeChart
Topic: ChartMouseEvent question
Replies: 1
Views: 2904

ChartMouseEvent question

I get a chartEntity object from a ChartMouseEvent (i.e. ChartEntity entity = event.getEntity(); ). Are there any access methods to get the category or row text from the entity? I can view the values by doing a entity.toString(), but I can't find "get" methods to access the data.

thanks
by dmacleod
Tue Jul 31, 2007 4:48 pm
Forum: JFreeChart
Topic: Bar Chart question
Replies: 4
Views: 4030

thanks, the demo was a perfect example of what I want to do.

Thanks again
by dmacleod
Tue Jul 31, 2007 3:47 pm
Forum: JFreeChart
Topic: Bar Chart question
Replies: 4
Views: 4030

If I add a ChartMouseListener, do I have to calculate x y coordinates or does the chart know what bar the mouse is over? Do you have an example of this, I couldn't find anything in the JFreeChart developers guide.

thanks
by dmacleod
Tue Jul 31, 2007 3:37 pm
Forum: JFreeChart
Topic: Bar Chart question
Replies: 4
Views: 4030

Bar Chart question

I have a bar chart, and would like to know when a user clicks on a bar then get the label for that bar. Is there a way to do this?

thanks
by dmacleod
Wed Jul 11, 2007 5:59 pm
Forum: JFreeChart
Topic: Adding a chart to a panel
Replies: 1
Views: 2238

Adding a chart to a panel

I created a Bar Chart and would like to add it to a JTabbedPane. However, when I run the line: pane.addTab(tabTitle, chart); I get an error: The method addTab(String, Component) in the type JTabbedPane is not applicable for the arguments (String, JFreeChart) How can I add a chart to a panel? I can't...
by dmacleod
Mon Jul 02, 2007 2:49 pm
Forum: JFreeChart
Topic: CombinedDomainCategoryPlot
Replies: 0
Views: 1658

CombinedDomainCategoryPlot

I am using a CombinedDomainCategoryPlot with two bar graphs. The graph on top is always larger than the graph on the bottom. (physical size) Is there a way to have both graphs use the same amount of space?
by dmacleod
Fri Jun 29, 2007 4:52 pm
Forum: JFreeChart
Topic: Newbie - two quick questions
Replies: 1
Views: 1989

Newbie - two quick questions

Is there a way to bring the Range gridlines to the front of a bar chart? Also, is there a way to put the Range Axis Label on the right side of a bar chart?