Search found 27 matches

by mskjeret
Mon Oct 09, 2006 8:08 am
Forum: JFreeChart
Topic: DomainAxis comparable to label
Replies: 3
Views: 4532

I have now gotten this to work as I wanted, but not without some trouble. You said it should be a Comparable, which it must be. However this only seems to be needed as a signature of the addValue() method. When I add my Comparable class my compareTo() method is never called. The Object.equals() meth...
by mskjeret
Fri Oct 06, 2006 6:20 pm
Forum: JFreeChart
Topic: Image map and legend url
Replies: 3
Views: 4755

Thanks for the update.

Magne
by mskjeret
Fri Oct 06, 2006 6:19 pm
Forum: JFreeChart
Topic: DomainAxis comparable to label
Replies: 3
Views: 4532

Ah, of course. It is kind of embarrassing when the solution is so simple as this. I was nowhere near the solution. And I call myself experienced!!! :-) I agree that the user would find having the same label confusing. It is mostly when using area names it happens. They are unique in the sense that y...
by mskjeret
Fri Oct 06, 2006 10:07 am
Forum: JFreeChart
Topic: Image map and legend url
Replies: 3
Views: 4755

Image map and legend url

Hi I have problems with creating a image map where I have a url on the legend items. I have added a generator for the urls in the legend: //Add drill-down urls to the legend ((LineAndShapeRenderer) plot.getRenderer()).setLegendItemURLGenerator(new LegendItemURLGenerator()); The url is correctly crea...
by mskjeret
Fri Oct 06, 2006 7:58 am
Forum: JFreeChart
Topic: DomainAxis comparable to label
Replies: 3
Views: 4532

DomainAxis comparable to label

Hi I am currently trying to implement a linechart, but this also applies to other charts. I just realize that my labels are not unique so can't be used as the comparable that goes into the dataset. I need to then add a unique code, which I have available, and add a mapping to the label afterwards. I...
by mskjeret
Fri Sep 01, 2006 7:11 pm
Forum: JFreeChart
Topic: Grouped bar chart
Replies: 4
Views: 6405

It seems that I don't need a grouped bar renderer afterall. Adding a SubCategory axis to the plot does exactly what I need to do. I also need to set a fixed legend, like in the grouped stack demo4, to avoid the large legend that would otherwise be added. Maybe that explains why there is no renderer ...
by mskjeret
Fri Sep 01, 2006 9:38 am
Forum: JFreeChart
Topic: Grouped bar chart
Replies: 4
Views: 6405

Is the solution you think of having one item on each stacked bar? One item that takes 100% of the bar. I assume that could be done.

Do you, or anyone, know why there is no GroupedBarRenderer?
Any technical reasons, or just haven't been done yet?
by mskjeret
Thu Aug 31, 2006 8:08 pm
Forum: JFreeChart
Topic: Grouped bar chart
Replies: 4
Views: 6405

Grouped bar chart

Hi

I have been looking around the source code, but without success so far.

I want to do something like the StackedBarChartDemo4, but with "normal" bars and not stacked.

Is this possible?

Magne Skjeret
by mskjeret
Fri Aug 11, 2006 8:04 am
Forum: JFreeChart
Topic: Grouped barchart
Replies: 0
Views: 2097

Grouped barchart

Hi I have been looking at the StackedBarChartDemo4 which does exactly what I want. I do however also need it for "normal" barcharts, but I do not see a GroupedBarRenderer anywhere. Is there a different way of doing this? I know it would be possible to just add each group to the barchart as I would d...
by mskjeret
Tue Aug 30, 2005 4:14 pm
Forum: JFreeChart
Topic: Legend and jfreechart rc1
Replies: 2
Views: 4349

Ouch.
I read the javadoc many times.
What could be more obvious than setPosition()

Thanks a lot
Magne
by mskjeret
Mon Aug 29, 2005 11:03 pm
Forum: JFreeChart
Topic: Legend and jfreechart rc1
Replies: 2
Views: 4349

Legend and jfreechart rc1

Hi I must have missed something here, and suspect that this is something I should know. I upgraded to rc1, and when I try to compile it wont, because of the Legend class. Earlier I used jfreechart.getLegend() and placed the legend where I wanted it. Now that method returns a LegendTitle instance, an...
by mskjeret
Sat Jan 01, 2005 1:58 pm
Forum: JFreeChart
Topic: getEndY in IntervalXYDataset
Replies: 1
Views: 2901

I think I managed to fix it myself.
I had just added:
implements IntervalXYDataset
but looking at the demoes I added this:
extends AbstractIntervalXYDataset implements IntervalXYDataset

It then started to work, not sure why though.
by mskjeret
Sat Jan 01, 2005 1:23 pm
Forum: JFreeChart
Topic: getEndY in IntervalXYDataset
Replies: 1
Views: 2901

getEndY in IntervalXYDataset

I am trying to implement my own IntervalXYDataset and it seems to go mostly fine. I am however having some trouble with the getEndY(int serie, int index) { } It seems that the integer for index is always 0. It should iterate on how large the getItemCount() retturns it is. It atually calls the getEnd...
by mskjeret
Sat Oct 23, 2004 9:59 pm
Forum: JFreeChart
Topic: much slow on solaris than on windows
Replies: 5
Views: 6929

Hi

Could it be that autoAlias is set to true?
I have heard that this slows things down considerable, at least on linux.
Maybe it is true for solaris too?

Magne
by mskjeret
Wed Oct 06, 2004 7:57 am
Forum: JFreeChart
Topic: Hole value in timeline/line chart
Replies: 1
Views: 2902

Hole value in timeline/line chart

Hi I have read through the developer guide, and did a quick search in the forum but nothing turned up. I am supposed to create a line chart (timeline), but we dont want to use dates. This is easy and seems to work just fine. But I am in the situation that I have data from e.g 1990 - 93 and from 97-2...