Search found 9 matches

by azrael
Mon Mar 26, 2012 12:43 pm
Forum: JFreeChart
Topic: Fixed Plot widths : Query for a definitive answer
Replies: 1
Views: 2217

Re: Fixed Plot widths : Query for a definitive answer

hmm.. since your ascii art ist messed up, I'm not shure if I get the point exactly... let's see if I'm right: You want the plot area - the place between the axes - to be the same in any chart, regardless der width of the lables in each chart? There ist no implementation of this. :( But - maybe - the...
by azrael
Thu Jan 26, 2012 3:41 pm
Forum: JFreeChart
Topic: BarChart with horizontal Bars - manipulate TickLabel's width
Replies: 5
Views: 4928

Re: BarChart with horizontal Bars - manipulate TickLabel's w

ok... the issue with the min-width seems to be fixed... I made a derivation of CategoryAxis and inserted a new member (with setter and getter) for minWidth. Afterwards I overrode the function reserveSpace(): private double minWidth = 150.0; public double getMinWidth() { return minWidth; } public voi...
by azrael
Thu Jan 26, 2012 9:32 am
Forum: JFreeChart
Topic: BarChart with horizontal Bars - manipulate TickLabel's width
Replies: 5
Views: 4928

Re: BarChart with horizontal Bars - manipulate TickLabel's w

Hi Martin, thanks for your reply! I am aware, there's no such feature implementet yet - so I'm trying (and hoping) to write some piece of code on my own... :) If you know the categories in each chart in advance, you could eventually try playing around with adding some insets on some of the charts. T...
by azrael
Wed Jan 25, 2012 5:35 pm
Forum: JFreeChart
Topic: Number of ticks between upper & lower ranges...
Replies: 1
Views: 2287

Re: Number of ticks between upper & lower ranges...

needed the same.. found following solution, that works fine for me: public static int calculateVisibleTickCount(NumberAxis axis) { double unit = axis.getTickUnit().getSize(); Range range = axis.getRange(); return (int) (Math.floor(range.getUpperBound() / unit) - Math.ceil(range.getLowerBound() / uni...
by azrael
Wed Jan 25, 2012 5:01 pm
Forum: JFreeChart
Topic: BarChart with horizontal Bars - manipulate TickLabel's width
Replies: 5
Views: 4928

Re: BarChart with horizontal Bars - manipulate TickLabel's w

Nobody any idea?? At the moment I'm trying to find out, if its possible to handle the issue by manipulating CategoryAxis.reserveSpace() and how. Unfortunately without success so far. Has noone tried to do what I want to do? Or do I need to provide more information on my goals? Any help appreciated -...
by azrael
Mon Jan 23, 2012 1:15 pm
Forum: JFreeChart
Topic: Gap between bars of same series
Replies: 7
Views: 11837

Re: Gap between bars of same series

Somedays... looking for a solution for days and finding only post asking the same question an no answer... Now, after viewing and seraching the code for another time, I've found the solution: For a BarRenderer, you can call the method setItemMargin(double percent) - the equvalent to this method on X...
by azrael
Mon Jan 23, 2012 1:00 pm
Forum: JFreeChart - Stockmarket
Topic: Extra space
Replies: 1
Views: 10865

Re: Extra space

maybe you try:

Code: Select all

      chart.getPlot().setInsets(new RectangleInsets(0.0, 0.0, 0.0, 0.0));
by azrael
Mon Jan 23, 2012 12:49 pm
Forum: JFreeChart
Topic: Gap between bars of same series
Replies: 7
Views: 11837

Re: Gap between bars of same series

Still no solution? I'm having the same problem, using a XYPlot an a XYBarRenderer to generate my bars. And obvious there's no chance to divide my bars, as long as they are in the same series. also, if I'm not totally wrong, I'm even not having a CategroyAxis to use setCategoryMargin() in any way: XY...
by azrael
Fri Jan 20, 2012 1:39 pm
Forum: JFreeChart
Topic: BarChart with horizontal Bars - manipulate TickLabel's width
Replies: 5
Views: 4928

BarChart with horizontal Bars - manipulate TickLabel's width

Hi, I'm new into jfreecharts and I'm trying to setup some diagrams - exported as buffered Image - on a webpage. Each diagramm is a single graphic but I want them to be diaplayed in some kind of accordence zu each other. I'm using version 1.0.13 To illustrate what's the goal an what I actually get, p...