Search found 15 matches

by MNusinov
Tue Jul 31, 2007 9:08 pm
Forum: JFreeChart
Topic: ChartMouseEvent question
Replies: 1
Views: 2315

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...
by MNusinov
Mon Jul 30, 2007 9:24 pm
Forum: JFreeChart
Topic: Combined Gantt Chart?
Replies: 16
Views: 18031

Is that Today bar part of your Gantt Chart? Is there a simple way to draw that on the Gantt Chart?
by MNusinov
Mon Jul 30, 2007 9:05 pm
Forum: JFreeChart
Topic: updating JFreechart on the fly?
Replies: 1
Views: 2311

as long as the chart is put in a ChartPanel it'll redraw as you add data to the dataset.
by MNusinov
Thu Jul 19, 2007 2:52 pm
Forum: JFreeChart - Stockmarket
Topic: bar chart high light
Replies: 6
Views: 19929

Crap I didn't see the date, I was using the search tool and stumbled upon this thread while trying to find an answer to something else. Now don't I have egg on my face?
by MNusinov
Wed Jul 18, 2007 4:36 pm
Forum: JFreeChart
Topic: Yet another Pan/Shift class (source included)
Replies: 22
Views: 26746

skunk wrote:By design a CategoryAxis always displays all values
So it would take a large rewrite to get something like this working across a Category Axis?
by MNusinov
Wed Jul 18, 2007 2:25 pm
Forum: JFreeChart
Topic: Yet another Pan/Shift class (source included)
Replies: 22
Views: 26746

Anyone have any ideas?
by MNusinov
Wed Jul 18, 2007 2:18 pm
Forum: JFreeChart
Topic: Gantt Chart : changing subtask color on click
Replies: 4
Views: 6577

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...
by MNusinov
Tue Jul 17, 2007 4:01 pm
Forum: JFreeChart - Stockmarket
Topic: bar chart high light
Replies: 6
Views: 19929

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...
by MNusinov
Mon Jul 16, 2007 8:49 pm
Forum: JFreeChart
Topic: Yet another Pan/Shift class (source included)
Replies: 22
Views: 26746

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 ...
by MNusinov
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: 2787

I would also like to know if this can be done, specifically in the vertical direction.

Presently, however it doesn't seem possible. There has been some discussion on this here and here. However I can't get either of these to work.
by MNusinov
Mon Jul 09, 2007 10:06 pm
Forum: JFreeChart
Topic: How can I put scrollbar on ChartPanel & space between ta
Replies: 2
Views: 4376

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...
by MNusinov
Fri Jul 06, 2007 2:19 pm
Forum: JFreeChart
Topic: Sizing JFreeChart
Replies: 6
Views: 8240

Actually I was looking for more of a solution with the sizing of the chart in a ScrollPane. I have a gantt chart that I would like to scroll along the Y axis and thought if a solution for scrolling this chart was found it would be applicable to my problem as well.
by MNusinov
Fri Jul 06, 2007 2:02 pm
Forum: JFreeChart
Topic: Question about DateAxis
Replies: 2
Views: 3146

That appears to be very similar. I'll take a look at trying to fix that.
by MNusinov
Thu Jul 05, 2007 10:27 pm
Forum: JFreeChart
Topic: Question about DateAxis
Replies: 2
Views: 3146

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...
by MNusinov
Tue Jul 03, 2007 7:42 pm
Forum: JFreeChart
Topic: Sizing JFreeChart
Replies: 6
Views: 8240

I know this thread is pretty old but I had come across a similar problem and was wondering if a solution was resolved since this thread initially was created.