Search found 13 matches

by the_schmitz
Wed Aug 22, 2007 3:15 pm
Forum: JFreeChart
Topic: Changing the Color of the Zoom Rectangle
Replies: 1
Views: 2640

Changing the Color of the Zoom Rectangle

Hello,
Can anyone tell me how to change the color of the Zoom Rectangle? Is it possible without having to override the mouse events?

Thanks in Advance,
Chris
by the_schmitz
Fri Sep 15, 2006 11:18 am
Forum: JFreeChart
Topic: How to highlight the item label
Replies: 2
Views: 4504

I forgot to mention you can also pull the range info with

Code: Select all

plot.getRangeAxis()
by the_schmitz
Fri Sep 15, 2006 11:17 am
Forum: JFreeChart
Topic: How to highlight the item label
Replies: 2
Views: 4504

Highlight a label? I think the best way to do that would be to change the Font and/or Color associated with the label. You should be able to do something like this: XYPlot plot = (XYPlot) chart.getPlot(); plot.getDomainAxis().setTickLabelPaint(Color.white); plot.getDomainAxis().setTickLabelFont(new ...
by the_schmitz
Fri Sep 15, 2006 9:02 am
Forum: JFreeChart
Topic: Determine Chart Type from a ChartPanel
Replies: 0
Views: 2251

Determine Chart Type from a ChartPanel

Hello,
I have a class that extends ChartPanel, and I'm trying to figure out how to determine what type of Chart (Bar,Area,Bubble,etc.) was created with ChartFactory.

Thanks in Advance,
Chris
by the_schmitz
Thu Sep 07, 2006 7:50 pm
Forum: JFreeChart
Topic: Getting the (Graphics) X and Y Position for a XYItemEntity
Replies: 3
Views: 5196

Thanks!

I noticed that ChartMouseEvent.getTrigger() I could provide me with the mouse position. But, I really needed to know the position of the entity clicked, or at least a way to determine the position of a giving chart entity. This way, when a chart is zoomed in/out I could loop through my "custom windo...
by the_schmitz
Thu Sep 07, 2006 12:44 am
Forum: JFreeChart
Topic: Getting the (Graphics) X and Y Position for a XYItemEntity
Replies: 3
Views: 5196

Figured it out

Ok,.. I figured it out,.. in chartMouseClicked I had to do this: translateJava2DToScreen(((ChartEntity)e.getEntity()).getArea().getBounds().getLocation()).getX(); translateJava2DToScreen(((ChartEntity)e.getEntity()).getArea().getBounds().getLocation()).getY(); If I didn't use translateJava2DToScreen...
by the_schmitz
Wed Sep 06, 2006 7:57 pm
Forum: JFreeChart
Topic: How to specify exact location for legend items?
Replies: 2
Views: 3726

What kind of chart are you creating? And what do you mean by "exact location" Are you talking about the location ON the Chart itself, or the location within the ChartPanel?

If you're looking for the location within the ChartPanel, I'm looking for the same thing as well.
by the_schmitz
Wed Sep 06, 2006 2:57 pm
Forum: JFreeChart
Topic: Getting the (Graphics) X and Y Position for a XYItemEntity
Replies: 3
Views: 5196

Getting the (Graphics) X and Y Position for a XYItemEntity

Hi All, I've created my own class that extends ChartPanel and implements the ChartMouseListener. My class enables a user to click on an item in the graph, and a "window" is then displayed on the graph. The window displays more detailed information about the item the user clicked on. I have given the...
by the_schmitz
Thu Aug 31, 2006 3:48 pm
Forum: JFreeChart
Topic: what event triggers the tooltip in chartpanel
Replies: 2
Views: 6010

How about here

You folks might want to take a look at these posts:

http://www.jfree.org/phpBB2/viewtopic.php?t=18271

Don't know if it'll help or not. I'll be attempting to do a similar thing this weekend, so if I can get it working, I'll be more than happy to post the code.
by the_schmitz
Sun Jul 23, 2006 3:07 pm
Forum: JFreeChart
Topic: Mouse Events
Replies: 5
Views: 10199

Yes Please!

Hi develop, I'd like to see a sample program. I have a similar need for something like this, with a twist. I have a client that wants to be able to click on a datapoint and then have a little window popup on the graph with information regarding the datapoint. Kind of like a tooltip, but a bit more a...
by the_schmitz
Fri Jun 02, 2006 7:19 pm
Forum: JFreeChart
Topic: Adding a custom legend
Replies: 2
Views: 5975

So,.. ummm,.. not possible?

So,.. I take it this isn't possible? :(

Can anyone tell me if a feature like this might be implemented in the future? I could definatly see the benefits of something like this, and I'm a little surprised it's not there. ARG!
by the_schmitz
Fri May 26, 2006 1:34 pm
Forum: JFreeChart
Topic: Adding a custom legend
Replies: 2
Views: 5975

Adding a custom legend

Hi There, I've created an application that has a JTable in which a user can filter data in/out. Once they have filtered the data (which they really don't have to do with a small dataset), they can generate different types of charts with an XYDataset. Everything looks fine, but the client would like ...
by the_schmitz
Thu May 18, 2006 6:04 pm
Forum: JFreeChart
Topic: Rotating the X-Axis labels 45 degrees with XYLineChart
Replies: 1
Views: 4625

Rotating the X-Axis labels 45 degrees with XYLineChart

Hello, I'm trying to rotate the X-Axis data point labels on an XYLineChart, and I can't seem to figure it out. On a bar chart, it's pretty straight forward: CategoryAxis domainAxis = plot.getDomainAxis(); domainAxis.setCategoryLabelPositions(CategoryLabelPositions.UP_45); But I can't seem to figure ...