Search found 6 matches

by jas511
Tue Apr 13, 2010 7:26 pm
Forum: JFreeChart
Topic: Dynamically editing chart colors
Replies: 2
Views: 4598

Re: Dynamically editing chart colors

Thanks. That was my plan, just wanted to check if that feature is already in JFreeChart somewhere so I didn't reimplement something that was already done.
by jas511
Tue Apr 13, 2010 7:12 pm
Forum: JFreeChart
Topic: Dynamically editing chart colors
Replies: 2
Views: 4598

Dynamically editing chart colors

I created a bar chart (and stacked bar chart) and I noticed the right click menu doesn't have an option for actually changing the bar colors. Is this possible to do?

thanks,
Jeff
by jas511
Fri Oct 02, 2009 11:17 pm
Forum: JFreeChart
Topic: Getting plot value from mouse
Replies: 1
Views: 2256

Getting plot value from mouse

Is there a way to get the x,y coordinates of the mouse on the plot from a ChartMouseEvent? Basically, I'm trying to show the x,y value on a label somewhere else based on where the mouse is. I only need to do this on mouse clicks.

thanks,
Jeff
by jas511
Fri Sep 11, 2009 8:13 pm
Forum: JFreeChart
Topic: Changing the chart height
Replies: 3
Views: 4187

Re: Changing the chart height

I was able to handle this problem in a much different way. I put the ChartPanel in another panel, call it chartPanelContainer. I set that to have a preferred height of Y (which is the height i wanted to display the chart at). I added chartPanelContainer to another panel, call it outerContainer. I th...
by jas511
Tue Sep 01, 2009 10:01 pm
Forum: JFreeChart
Topic: Changing the chart height
Replies: 3
Views: 4187

Re: Changing the chart height

Thanks for pointing this post out (and your explanation). I'll be reading up on that patch and seeing if I can use it in my case (thought it looks like I can).
by jas511
Tue Sep 01, 2009 7:04 pm
Forum: JFreeChart
Topic: Changing the chart height
Replies: 3
Views: 4187

Changing the chart height

Hi, I am trying to restrict my chart to have a maximum height and I've tried that using the setMaximumDrawHeight method. That does restrict the height, but because my chart is very wide, the scaling causes the text labels and axes to be gigantic. Basically I only want the plot height to be Y pixels ...