Search found 45 matches

by Naxter
Tue May 24, 2016 7:19 am
Forum: JFreeChart
Topic: Equal Axis by click
Replies: 2
Views: 4144

Re: Equal Axis by click

Yeah, you are absoluty right. So i tried a little bit more and found this solution: (It works great for me) ValueAxis rangeAx = getDrawingPanel().getXYPlot().getRangeAxis(); double differenceY = rangeAx.getUpperBound() - rangeAx. getLowerBound(); //DOMAIN ValueAxis domainAx = getDrawingPanel().getXY...
by Naxter
Mon May 23, 2016 12:00 pm
Forum: JFreeChart
Topic: Equal Axis by click
Replies: 2
Views: 4144

Equal Axis by click

Hello everyone. I have a normal XYPlot with a XYLineAndShapeRenderer and XYSeriesCollection. I am plotting different shapes. My clients want to have a button which generates "equal axis". Check out the images then you will get what I need. It is kind of squared axis. I found a old topic about it, bu...
by Naxter
Wed Apr 27, 2016 10:27 am
Forum: JFreeChart
Topic: How to increase a Barchart's minimum width for large charts
Replies: 7
Views: 6780

Re: How to increase a Barchart's minimum width for large cha

Hi, have you thought about changing the barWidth depending the zoom factor? By the way: if you want to have thicker bars in larger zoom outs, your "area", where your Bar belongs to will get larger too. So actually you had the bar from 48-52 for example, and with changing the bar width your area woul...
by Naxter
Thu Apr 21, 2016 12:49 pm
Forum: JFreeChart
Topic: StandardBarPainter
Replies: 4
Views: 5119

Re: StandardBarPainter

Oh well, sorry that i misunderstood your question. I could have told you that earlier than how that works. But great that you found it yourself.

Greetings
by Naxter
Thu Apr 21, 2016 9:55 am
Forum: JFreeChart
Topic: StandardBarPainter
Replies: 4
Views: 5119

Re: StandardBarPainter

hey,

mabye a silly idea, but why don´t you just squeeze the Y-Axis? So only difference between these two charts I see, is that the second one is way smaller in the Y-Axis and larger in the X-Axis.
Or do I misunderstand you?

Greetings Tobi
by Naxter
Thu Feb 04, 2016 8:34 am
Forum: JFreeChart
Topic: Line Chart - Adjusting padding for first/last tick marks
Replies: 4
Views: 4670

Re: Line Chart - Adjusting padding for first/last tick marks

Hey!

forget this, I thought you were using normal XYPlot.

Greetings
by Naxter
Thu Dec 17, 2015 8:22 am
Forum: JFreeChart
Topic: Not seeing XY points from chartMouseClicked event
Replies: 1
Views: 4815

Re: Not seeing XY points from chartMouseClicked event

hey,

have you tried using the

Code: Select all

e.getChart()
to get the points?
by Naxter
Tue Nov 24, 2015 10:06 am
Forum: JFreeChart
Topic: Bar Chart Double Precision
Replies: 3
Views: 5874

Re: Bar Chart Double Precision

I am glad that I was able to help you.
Happy coding.
by Naxter
Tue Nov 24, 2015 8:26 am
Forum: JFreeChart
Topic: Bar Chart Double Precision
Replies: 3
Views: 5874

Re: Bar Chart Double Precision

At first you maybe should post a screenshot of what exactly your problem is. If I understand you right, you would like to decide yourself how the Y-Axis is shown? You can recieve this by doing this: XYPlot plot = getXYPlot(); NumberAxis axis = new NumberAxis(); axis.setRange(lower, upper); plot.setR...
by Naxter
Tue Nov 17, 2015 4:34 pm
Forum: JFreeChart
Topic: [Solved] Change RangeAxis reference and orientation
Replies: 2
Views: 5167

Re: Change RangeAxis reference and orientation

hey,

actually you should have checked the XYBarRenderer. This Renderer has a method which is called "setBase". You can you use it this way.

Code: Select all

    barRenderer.setBase(-30.);
I hope this is what you were looking for.

Greetings
by Naxter
Wed Nov 04, 2015 10:09 am
Forum: JFreeChart
Topic: XYDotRenderer has no tooltips
Replies: 3
Views: 6566

Re: XYDotRenderer has no tooltips

This is what the drawItem method looks like right now. I just tested it and it works fine. I guess it is not the best solution, but I just copied the important parts of the XYLineAndShapeRenderer to the XYDotRenderer. /** * Draws the visual representation of a single data item. * * @param g2 * the g...
by Naxter
Wed Nov 04, 2015 8:06 am
Forum: JFreeChart
Topic: XYDotRenderer has no tooltips
Replies: 3
Views: 6566

Re: XYDotRenderer has no tooltips

Thanks David, I will give it a try.
by Naxter
Thu Oct 29, 2015 1:08 pm
Forum: JFreeChart
Topic: XYDotRenderer has no tooltips
Replies: 3
Views: 6566

XYDotRenderer has no tooltips

Hey guys! I have to use the XYDotRenderer and everything works perfect. The only problem i noticed is, that the BaseToolTipGenerator does not work for this renderer. I read that this is caused because the XYDotRendere does not support chart entities. Is there a common way to get tooltips for my data...
by Naxter
Wed Sep 23, 2015 12:24 pm
Forum: JFreeChart
Topic: Providing a patch to the trunk/branch
Replies: 4
Views: 7551

Re: Providing a patch to the trunk/branch

Okay thank you for your reply.

That would be absolutly sufficient in my eyes, I would appreciate your change for the next release.

Greetings,

Tobi
by Naxter
Thu Sep 17, 2015 1:49 pm
Forum: JFreeChart
Topic: Providing a patch to the trunk/branch
Replies: 4
Views: 7551

Re: Providing a patch to the trunk/branch

Hey,

I have the same issue as Daniel. I changed the variable "panMask" in ChartPanel to "protected", that allows me to change the mouse Events.
Do I have to "patch" this? And where do I have to put the patch?

Greetings