Search found 201 matches

by remiohead
Fri Feb 22, 2013 10:49 pm
Forum: JFreeChart
Topic: AreaChart - different colour line and fill
Replies: 2
Views: 3374

Re: AreaChart - different colour line and fill

Looking at the code to AreaRenderer, the answer appears to be no.
by remiohead
Thu Dec 20, 2012 9:41 pm
Forum: JFreeChart
Topic: HTML in Chart Title String
Replies: 2
Views: 3705

Re: HTML in Chart Title String

Doesn't look like it. You could create a new class extending Title that uses a JEditorPane to render HTML text.
by remiohead
Thu Dec 20, 2012 9:30 pm
Forum: JFreeChart
Topic: Strange line within line chart
Replies: 9
Views: 8286

Re: Strange line within line chart

Code: Select all

setTickMarksVisible(boolean flag)
Note that the overall axis visible flag must be set to true otherwise tick marks will not display.
by remiohead
Thu Dec 20, 2012 9:24 pm
Forum: JFreeChart
Topic: Update LineGrpah with new Data
Replies: 5
Views: 5175

Re: Update LineGrpah with new Data

Two things. One, the thread is sleeping for 50 seconds, not 5 minutes. Second, you sure that the incoming data is actually different from the earlier data?
by remiohead
Tue Dec 18, 2012 3:06 pm
Forum: JFreeChart
Topic: setMinimumBarLength() bug causes bar to paint below base.
Replies: 3
Views: 4135

Re: setMinimumBarLength() bug causes bar to paint below base

The translated base value is calculated from the raw data values, which explains why the base is incorrect for the forced-longer bars. An alternative strategy might be to use a dataset that inflates the low data values to some minimum. You would need to provide a custom label generator to return the...
by remiohead
Sun Dec 16, 2012 6:40 pm
Forum: JFreeChart
Topic: Category Axis Label Length Problem
Replies: 3
Views: 4454

Re: Category Axis Label Length Problem

FYI, the API doc is all online and easily searchable.

http://www.jfree.org/jfreechart/api/jav ... Lines(int)
by remiohead
Thu Dec 13, 2012 6:36 pm
Forum: JFreeChart
Topic: URGENT, PLEASE how to display graph in new gui
Replies: 2
Views: 3653

Re: URGENT, PLEASE how to display graph in new gui

I (and maybe others) would be more likely to help you in the code was in code tags and the code was SSCCE (http://sscce.org/).

If you can rewrite the original post with code tags and a SSCCE I will come back and take a look.
by remiohead
Tue Dec 11, 2012 2:11 pm
Forum: JFreeChart
Topic: Label control in SpiderWebPlot
Replies: 1
Views: 2641

Re: Label control in SpiderWebPlot

There are several patches out there (search the forum) that provide additional functionality, but I'm not aware of anything that deals with the category labels. Someone else may chime in, but I believe you'll have to write this code yourself.
by remiohead
Tue Dec 11, 2012 2:05 pm
Forum: JFreeChart
Topic: Pie chart, grey borders around legend items
Replies: 3
Views: 4174

Re: Pie chart, grey borders around legend items

The method of interest here is PiePlot.getLegendItems(). An outline paint and stroke are called from lookupSectionOutlinePaint() and lookupSectionOutlineStroke() respectively. In theory these should return the same values as your actual pie chart sections use. If you want different behaviour here th...
by remiohead
Mon Dec 10, 2012 11:53 pm
Forum: JFreeChart
Topic: Pie chart, grey borders around legend items
Replies: 3
Views: 4174

Re: Pie chart, grey borders around legend items

Step through the painting code. Easiest way to see where it's coming from.
by remiohead
Fri Dec 07, 2012 7:18 pm
Forum: JFreeChart
Topic: Help needed getting setItemMargin(0.0) to work ........
Replies: 8
Views: 10296

Re: Help needed getting setItemMargin(0.0) to work ........

You're confusing classes for drawing Category charts (BarRenderer) with classes for drawing XY charts (XYBarRenderer). They're in different packages for a reason. Since you appear to be using XYBarRenderer you can ignore BarRenderer since it is not relevant. I've never used XYBarRenderer but it has ...
by remiohead
Wed Oct 17, 2012 6:26 pm
Forum: JFreeChart
Topic: setting jfreechart image PANEL background in saveChartAsPNG
Replies: 1
Views: 2858

Re: setting jfreechart image PANEL background in saveChartAs

If you notice that method takes the JFreeChart object and not the panel, so anything you do to the panel is completely irrelevant to the image.

Code: Select all

jFreeChart.setBackgroundPaint(Paint);
is the method to use.
by remiohead
Tue Sep 25, 2012 11:12 pm
Forum: JFreeChart
Topic: Starting a bar chart below zero?
Replies: 5
Views: 5168

Re: Starting a bar chart below zero?

The original version in DataUtilities is: public static double calculateColumnTotal(Values2D data, int column, int[] validRows) { if (data == null) { throw new IllegalArgumentException("Null 'data' argument."); } double total = 0.0; int rowCount = data.getRowCount(); for (int v = 0; v < validRows.le...
by remiohead
Tue Sep 25, 2012 6:28 pm
Forum: JFreeChart
Topic: Starting a bar chart below zero?
Replies: 5
Views: 5168

Re: Starting a bar chart below zero?

It's possible to do with a StackedBarRenderer, although I had to do a custom implementation of DataUtilities.calculateColumnTotal to make it work correctly in my project.
by remiohead
Tue Sep 25, 2012 6:22 pm
Forum: JFreeChart
Topic: Pie Chart Label Links (jfreechart-1.0.12)
Replies: 5
Views: 5714

Re: Pie Chart Label Links (jfreechart-1.0.12)

Is there a reason you can't override getLabelLinkDepth() in your subclass?

Code: Select all

    @Override
    protected double getLabelLinkDepth() {
        return customValue;
    }