Search found 15 matches
- Tue Jul 31, 2007 9:08 pm
- Forum: JFreeChart
- Topic: ChartMouseEvent question
- Replies: 1
- Views: 2900
Try something like this: CategoryItemEntity categoryItem = (CategoryItemEntity)e.getEntity(); String selectedName = categoryItem.getColumnKey().toString(); That's for a category data plot. I'm sure it would be similar for other plots. Just see what type of Entity, e.getEntity is giving you and typec...
- Mon Jul 30, 2007 9:24 pm
- Forum: JFreeChart
- Topic: Combined Gantt Chart?
- Replies: 16
- Views: 24965
- Mon Jul 30, 2007 9:05 pm
- Forum: JFreeChart
- Topic: updating JFreechart on the fly?
- Replies: 1
- Views: 2888
- Thu Jul 19, 2007 2:52 pm
- Forum: JFreeChart - Stockmarket
- Topic: bar chart high light
- Replies: 6
- Views: 27581
- Wed Jul 18, 2007 4:36 pm
- Forum: JFreeChart
- Topic: Yet another Pan/Shift class (source included)
- Replies: 22
- Views: 44728
- Wed Jul 18, 2007 2:25 pm
- Forum: JFreeChart
- Topic: Yet another Pan/Shift class (source included)
- Replies: 22
- Views: 44728
- Wed Jul 18, 2007 2:18 pm
- Forum: JFreeChart
- Topic: Gantt Chart : changing subtask color on click
- Replies: 4
- Views: 8557
Try something similar to this. It has worked for me. public class SelectionEnabledGanttRenderer extends GanttRenderer { private int selectedRow=-1; private int selectedColumn=-1; @Override public Paint getItemPaint(int row, int column) { Paint p = super.getItemPaint(row, column); if(row==selectedRow...
- Tue Jul 17, 2007 4:01 pm
- Forum: JFreeChart - Stockmarket
- Topic: bar chart high light
- Replies: 6
- Views: 27581
I also want to record the x-y values. If you had a ChartMouseListener to the ChartPanel you can use the event: public void chartMouseClicked(ChartMouseEvent e) to get the x-y values for a clicked on item. XYItemEntity xyItem = (XYItemEntity)e.getEntity(); xyItem.getDataset().getX(xyItem.getSeriesIn...
- Mon Jul 16, 2007 8:49 pm
- Forum: JFreeChart
- Topic: Yet another Pan/Shift class (source included)
- Replies: 22
- Views: 44728
Hi, The dataset type is unimportant... It's all about the axis. Since DateAxis is a ValueAxis you should be able to use the code without too much hassle, just remember to translate the BoundedRangeModel values to a valid date. How about scrolling across tasks in a Gantt Chart? That axis would be a ...
- Mon Jul 16, 2007 2:44 pm
- Forum: JFreeChart
- Topic: is there a way to make the chart grow with more data?
- Replies: 2
- Views: 3702
- Mon Jul 09, 2007 10:06 pm
- Forum: JFreeChart
- Topic: How can I put scrollbar on ChartPanel & space between ta
- Replies: 2
- Views: 5562
Alright, I'm trying to use this workaround but it doesn't seem to like dynamically adjusting itself. What you have described works upon initial creation but I'm adding new tasks dynamically. if(count > 40) { chartPanel.setRangeZoomable(true); chartPanel.setMinimumSize(new Dimension(chartPanel.getWid...
- Fri Jul 06, 2007 2:19 pm
- Forum: JFreeChart
- Topic: Sizing JFreeChart
- Replies: 6
- Views: 10159
- Fri Jul 06, 2007 2:02 pm
- Forum: JFreeChart
- Topic: Question about DateAxis
- Replies: 2
- Views: 4000
- Thu Jul 05, 2007 10:27 pm
- Forum: JFreeChart
- Topic: Question about DateAxis
- Replies: 2
- Views: 4000
Question about DateAxis
I appologize if this has been answered before but I need an answer. I'm making a TimeSeriesChart that keeps track of 3 days worth of data that comes in 8 hour increments (So 9 data points at a time) I have everything working except for the Domain axis: timeChart.getXYPlot().getDomainAxis().setFixedA...
- Tue Jul 03, 2007 7:42 pm
- Forum: JFreeChart
- Topic: Sizing JFreeChart
- Replies: 6
- Views: 10159