Search found 497 matches

by mhilpert
Tue Jul 01, 2008 2:48 pm
Forum: JFreeChart
Topic: getSectionPaint() returns null
Replies: 7
Views: 5642

This seems to be a bug! It doesn't make sense to return null if there is internally a color.
by mhilpert
Tue Jul 01, 2008 1:16 pm
Forum: JFreeChart
Topic: ignoreZeroValues not working as expected
Replies: 2
Views: 2589

This is not a good solution, as we need this feature to do this automatically. setIgnoreZeroValues() should have a second parameter to also remove the related color of the color series - and not only the zero value. My workaround: /** * Remove zero values and their series colors. * * @param chart JF...
by mhilpert
Tue Mar 11, 2008 11:52 am
Forum: JFreeChart
Topic: va.setUpperMargin() doesn't work for non-autorange axis
Replies: 0
Views: 1787

va.setUpperMargin() doesn't work for non-autorange axis

ValueAxis.setUpperMargin() doesn't do anything if the axis has no auto-range - why?
by mhilpert
Thu Feb 28, 2008 9:10 pm
Forum: JFreeChart
Topic: TickUnitSource: endless instances to avoid overlapping?
Replies: 6
Views: 7326

What's the problem you already need to state one fixed class like "Month.class" and the formatter is of course also fixed for one axis. So you can compute the maximum space for a label, e.g. a Date with "yyyy-MM-dd".
by mhilpert
Mon Feb 25, 2008 4:48 pm
Forum: JFreeChart
Topic: TickUnitSource: endless instances to avoid overlapping?
Replies: 6
Views: 7326

I've written my own TickUnitSource but keep on increasing number of DateTickUnits as the wider the time span on the x axis is, the more DateTickUnits are required - otherwise, the labels fall back into "overlapping mode" ... :cry: /** * Create tick units for a time period (e.g. Month.class) and date...
by mhilpert
Wed Feb 20, 2008 4:27 pm
Forum: JFreeChart
Topic: Custom series shape set?
Replies: 1
Views: 2959

Custom series shape set?

How can I change the default series shapes? E.g. I would like to have a square for the first item and circles for the remaining items. The shapes are drawn in DefaultDrawingSuppler with a static method createStandardSeriesShapes(). I can work around by instantiating a new DefaultDrawingSupplier with...
by mhilpert
Fri Feb 15, 2008 1:11 pm
Forum: JFreeChart - Stockmarket
Topic: Welcome...
Replies: 2
Views: 167978

no support ... as you can see, most of threads here are general JFreeChart discussions. Only very few are special to stock market issues ... which could be discussed in the general JFreeChart forum too, as there are much more people than here.
by mhilpert
Fri Feb 15, 2008 11:43 am
Forum: JFreeChart
Topic: How to show the data
Replies: 3
Views: 3504

Download JFreeChart and go into source\org\jfree\chart\demo that contains some example sources. Look into BarChartDemo1.java and you will learn to find your answer.
by mhilpert
Fri Feb 15, 2008 11:40 am
Forum: JFreeChart
Topic: how to create JPG file using JFREE chart
Replies: 2
Views: 4926

/** * Save chart to file in JPG format. * * @param chart JFreeChart. * @param fileName Name of JPG file. * @param width Width of JPG image. * @param height Height of JPG image. * @return Final file name used. * @throws IOException on error. */ static public final String saveChartToJPG(final JFreeCh...
by mhilpert
Wed Feb 13, 2008 3:03 pm
Forum: JFreeChart
Topic: Line chart - Overlaping Categories
Replies: 6
Views: 5146

add some margins to your axes to increase the data range (lower/upper bound).
by mhilpert
Wed Feb 13, 2008 1:45 pm
Forum: JFreeChart
Topic: [Solved] Legend does not show series colors in StackedBar...
Replies: 3
Views: 3392

"[Solved]" doesn't help anybody here if you don't write what was wrong and how you solved it ...
by mhilpert
Wed Feb 13, 2008 1:31 pm
Forum: JFreeChart
Topic: Export to a vector format
Replies: 8
Views: 10196

/** * Save chart as SVG file. * Required libs: Apache Batik (batik-svggen.jar, batik-dom.jar, dom.jar). * * @param chart JFreeChart to save. * @param fileName Name of file to save chart in. * @param width Width of chart graphic. * @param height Height of chart graphic. * @return Final file name use...
by mhilpert
Tue Feb 12, 2008 5:11 pm
Forum: JFreeChart
Topic: how to get axis bounds
Replies: 2
Views: 3561

See DatasetUtilities.findMaximumDomainValue(), etc.
by mhilpert
Tue Feb 12, 2008 4:59 pm
Forum: JFreeChart
Topic: 1891928: PercentageAxis (1891921: Enhanced LogarithmicAxis)
Replies: 13
Views: 19749

Patches instead of RFEs

I finally posted the axes as patches on sourceforge:

[1891921] Enhanced LogarithmicAxis

[1891928] PercentageAxis

In addition, both axes unifiy the two refreshTicksVertical()/refreshTicksHorizontal() and offer new superscript exponents for the tick labels.