Search found 497 matches

by mhilpert
Mon Aug 27, 2012 4:16 pm
Forum: JFreeChart
Topic: SpiderChart / SpiderWebChart
Replies: 1
Views: 2457

Re: SpiderChart / SpiderWebChart

Code: Select all

JFreeChart  result = new JFreeChart("Radar", JFreeChart.DEFAULT_TITLE_FONT, new SpiderWebPlot(getMyCategoryDataset()), true);
by mhilpert
Wed Aug 15, 2012 8:08 am
Forum: JFreeChart
Topic: PeriodAxis: setTickLabelFont() does nothing!
Replies: 3
Views: 4220

Re: PeriodAxis: setTickLabelFont() does nothing!

So this is no "change" - the API should be extended so that PeriodAxis also supports the change the font after instantiation. => request for enhancement
by mhilpert
Mon Aug 13, 2012 5:24 pm
Forum: JFreeChart
Topic: PeriodAxis: setTickLabelFont() does nothing!
Replies: 3
Views: 4220

PeriodAxis: setTickLabelFont() does nothing!

I just changed my DateAxis with PeriodAxis to workaround the problem with repeating time labels (avoid multiple plottings of same year, e.g.). I got it working now to use PeriodAxis instead of DateAxis. But now my calls to setTickLabelFont() don't work with PeriodAxis anymore! (Work with DateAxis). ...
by mhilpert
Thu Aug 09, 2012 4:25 pm
Forum: JFreeChart
Topic: DateAxis tick labels for regular intervals
Replies: 8
Views: 10581

Re: DateAxis tick labels for regular intervals

Finally got it: //replace axis with PeriodAxis to have only 1 x tick label per year: PeriodAxis pa = new PeriodAxis("PeriodAxisLabel", new Month(ICUtils.toDate("20040101", "yyyyMMdd")), new Month(ICUtils.toDate("20121231", "yyyyMMdd"))); PeriodAxisLabelInfo[] info = new PeriodAxisLabelInfo[1]; info[...
by mhilpert
Thu Aug 09, 2012 4:10 pm
Forum: JFreeChart
Topic: DateAxis tick labels for regular intervals
Replies: 8
Views: 10581

Re: DateAxis tick labels for regular intervals

I wrote a test chart: JFreeChart result = null; result = ChartFactory.createTimeSeriesChart("Bar Chart 2", "X-Title", "Y-Title", getTimeSeriesCollection1(), true, true, false); //time series chart has a line renderer as default, so change it to a bar renderer: final XYPlot xyp = result.getXYPlot(); ...
by mhilpert
Thu Aug 09, 2012 3:45 pm
Forum: JFreeChart
Topic: DateAxis tick labels for regular intervals
Replies: 8
Views: 10581

Re: DateAxis tick labels for regular intervals

PeriodAxis ... never heard of it. Do you have an example of its usage?
by mhilpert
Thu Aug 09, 2012 3:28 pm
Forum: JFreeChart
Topic: DateAxis tick labels for regular intervals
Replies: 8
Views: 10581

Re: DateAxis tick labels for regular intervals

I have the same problem for a line chart! The lines should show all month values but the axis only should show each year. Unfortunately, JFreeChart shows as many (same) years as there is space for it, e.g. 2008 2008 2008 2009 2009 2009 2010 2010 2010 As the tick label only has format 'yyyy' to only ...
by mhilpert
Fri Dec 09, 2011 3:35 pm
Forum: JFreeChart
Topic: JFreeChart 1.0.14
Replies: 18
Views: 32603

Re: JFreeChart 1.0.14

jfreechart.jar still has version "1.0.13"!
(org.jfree.chart.resources.JFreeChartResources)
by mhilpert
Fri Jan 21, 2011 10:55 am
Forum: JFreeChart
Topic: Organigram (extension)?
Replies: 0
Views: 2507

Organigram (extension)?

Are there already some classes in JFreeChart (e.g. submitted by other users) to draw organigrams? I'm thinking about writing my own organigram plot class for JFreeChart, but if others already have started such types ...?
by mhilpert
Fri Jan 14, 2011 11:13 am
Forum: JFreeChart
Topic: Legend label generator?
Replies: 0
Views: 2932

Legend label generator?

When I show the legend of a pie plot, I like to see the labels as when I show the pie item labels via PiePlot.setLabelGenerator(new StandardPieSectionLabelGenerator("{0} ({2})")) I found PiePlot.setLegendLabelGenerator(new StandardPieSectionLabelGenerator("{0} ({2})")) and wonder if there is not gen...
by mhilpert
Thu Sep 09, 2010 9:10 am
Forum: JFreeChart
Topic: Bar / Line Chart misalignment
Replies: 30
Views: 28519

Re: Bar / Line Chart misalignment

It's a long time ago, but I found a place in my code where I referenced to this forum thread. Perhaps it might help you: ... //set date format for time series chart: if (AXISTYPE_TIME.equalsIgnoreCase(xType)) { final XYPlot xyPlot = result.getXYPlot(); final DateAxis da = (DateAxis) xyPlot.getDomain...
by mhilpert
Fri Feb 26, 2010 5:31 pm
Forum: JFreeChart
Topic: Bar / Line Chart misalignment
Replies: 30
Views: 28519

Re:

Anyway, will you incorporate a feature for XYBarRenderer to place the bar around the x location? (So that this workaround would be just temporary.) I am going to try. I think it should be relatively simple, but I need to examine the factors such as plot orientation, axis inversion, stacking in the ...
by mhilpert
Fri Feb 26, 2010 4:39 pm
Forum: JFreeChart
Topic: Bar / Line Chart misalignment
Replies: 30
Views: 28519

Re: Bar / Line Chart misalignment

And I have this bug again ... now, the bars are always within a month time period - no matter where I move the date tick mark position. And the item label position is also misplaced no matter what outside 1-12 I use. I set both DateAxis.setTickMarkPosition(DateTickMarkPosition.END) TimeTableXYDatase...
by mhilpert
Fri Nov 20, 2009 2:07 pm
Forum: JFreeChart
Topic: TimeTableXYDataset: tick labels wrong (Month +1!)
Replies: 4
Views: 4831

Re: TimeTableXYDataset: tick labels wrong (Month +1!)

Okay, setXPosition(TimePeriodAnchor.END) did the trick. Thanks for your explanation. I would prefer a default of TimePeriodAnchor.END as this is what the date value really is. If I have a date like 2009-11-20, the default should be 1. with format "yyyy": 2009-12-31 (year = end of year) 2. with forma...
by mhilpert
Wed Nov 18, 2009 2:44 pm
Forum: JFreeChart
Topic: TimeTableXYDataset: tick labels wrong (Month +1!)
Replies: 4
Views: 4831

Re: TimeTableXYDataset: tick labels wrong (Month +1!)

Here's a minimal test case: /** * JFreeChart bug: TimeTableXYDataset with Month period shifts date tick labels. * (Bug <a href="http://sourceforge.net/tracker/?func=detail&aid=2899145&group_id=15494&atid=115494">2899145</a>). * The resulting chart shows "Apr 2006" for the first date value "2006-05-3...