Search found 483 matches

by matinh
Thu Aug 09, 2012 3:58 pm
Forum: JFreeChart
Topic: DateAxis tick labels for regular intervals
Replies: 8
Views: 10480

Re: DateAxis tick labels for regular intervals

Start up the demo and open "TimeSeries Charts". There are a few demos of the PeriodAxis.
I don't have code at hand right now, but search the forum and use the JavaDoc. It's quite easy.

- martin
by matinh
Thu Aug 09, 2012 3:38 pm
Forum: JFreeChart
Topic: DateAxis tick labels for regular intervals
Replies: 8
Views: 10480

Re: DateAxis tick labels for regular intervals

To my knowledge, this can't be done with a DateAxis. But did you have a look at the PeriodAxis?

hth,
- martin
by matinh
Wed Aug 08, 2012 8:23 am
Forum: JFreeChart
Topic: ValueAxis FixedDimension bug
Replies: 4
Views: 5128

Re: ValueAxis FixedDimension bug

Hi!

I've created an entry in the bug-tracker: #3555275.
Could you be so kind and give some more details about the actual problem. What is the expected and the actual behaviour?
A demo program or a unit-test would be very helpful!

Thanks for reporting,
- martin
by matinh
Tue Aug 07, 2012 6:47 am
Forum: JFreeChart
Topic: Annotations using LogAxis
Replies: 1
Views: 2805

Re: Annotations using LogAxis

Hi! If you just want to show the same data on a logarithmic plot, you don't have to recalculate anything. Just exchange the axis, that's it. I would assume that all annotations work as expected, regardless which axis you use. If one doesn't, it's either a bug, or your expectations are wrong :) Pleas...
by matinh
Thu Aug 02, 2012 8:06 am
Forum: JFreeChart
Topic: [SOLVED] Change BoxedLegend font, size, and/or color?
Replies: 2
Views: 3309

Re: Change BoxedLegend font, size, and/or color?

What is BoxedLegend? It's not a class that is part of JFreeChart.
JFreeChart provides a TextTitle or a LegendTitle for example. And those classes have various methods for changing fonts.

- martin
by matinh
Wed Aug 01, 2012 7:48 am
Forum: JFreeChart
Topic: exclude high brightness yellow series.
Replies: 2
Views: 8311

Re: exclude high brightness yellow series.

What I did is something like this: final Paint[] paintArray; // create default colors but modify some colors that are hard to see paintArray = ChartColor.createDefaultPaintArray(); paintArray[2] = new Color(0x00, 0xBB, 0x00); paintArray[3] = new Color(0xEE, 0xAA, 0x00); plot.setDrawingSupplier(new D...
by matinh
Wed Aug 01, 2012 7:39 am
Forum: JFreeChart
Topic: Dynamically add text to tooltip from another database column
Replies: 8
Views: 6821

Re: Dynamically add text to tooltip from another database co

You can easily create your own tooltips using a custom TooltipGenerator. What kind of text you output is up to you. You can read the text from a database, from a properties file, or use whatever you want. Generating that text, however, is not JFreeChart's job but yours.

hth,
- martin
by matinh
Wed Aug 01, 2012 7:26 am
Forum: JFreeChart
Topic: Problem Label Axis X: drawed out of graph
Replies: 2
Views: 3843

Re: Problem Label Axis X: drawed out of graph

Hi!

The easiest solution/work-around to your problem is probably just setting some additional margin. You can use axis.setLowerMargin() resp. axis.setUpperMargin().
You could also try plot.setInsets().

hth,
- martin
by matinh
Wed Jul 25, 2012 8:06 am
Forum: JFreeChart
Topic: BUILD FAILED Warning: Could not find file maven-jfreechart-p
Replies: 1
Views: 2528

Re: BUILD FAILED Warning: Could not find file maven-jfreecha

Try running the build from JFreeChart's toplevel directory:

Code: Select all

$ pwd
/home/martin/svndir/jfreechart
$ ant -f ant/build.xml
hth,
- martin
by matinh
Thu Jul 19, 2012 11:26 am
Forum: JFreeChart
Topic: ATTN JFreeChart forum members; DO NOT REPLY TO SPAM POSTS
Replies: 8
Views: 14445

Re: ATTN JFreeChart forum members; DO NOT REPLY TO SPAM POST

Code: Select all

Is this the right thread to collect Spam ?
No, it's not. There is a "report this post" icon in the right upper corner of every post. Use this instead!

thx,
- martin
by matinh
Fri Jul 13, 2012 11:39 am
Forum: JFreeChart
Topic: Alignment problem in vertical bars and category labels
Replies: 5
Views: 5695

Re: Alignment problem in vertical bars and category labels

A CategorySet is able to represent data in two-dimensions (like a table with rows and columns): +-+-+-+ |a|b|c| +-+-+-+ |d|e|f| +-+-+-+ |g|h|i| +-+-+-+ Your data just has a single row (or column): +-+-+-+ |a|b|c| +-+-+-+ | | | | +-+-+-+ | | | | +-+-+-+ But you are setting row and column keys in a wa...
by matinh
Thu Jul 12, 2012 2:25 pm
Forum: JFreeChart
Topic: Alignment problem in vertical bars and category labels
Replies: 5
Views: 5695

Re: Alignment problem in vertical bars and category labels

Hi again! I know JasperReports but I've got close to no experience when it comes to using charts in it. Anyway, it's none of the visual properties of the chart that make it look like it does. It's your data that isn't used as supposed. Could you eventually try to change to code you just posted and s...
by matinh
Thu Jul 12, 2012 1:23 pm
Forum: JFreeChart
Topic: Alignment problem in vertical bars and category labels
Replies: 5
Views: 5695

Re: Alignment problem in vertical bars and category labels

Hi! JFreeChart has nothing such as "Customizers". This seems to come from JasperReport and has nothing to do with your concrete problem. Your problem is, you are using the CategoryDataset in a wrong way. You use different series with a single item in each series, when you want to use a single series...
by matinh
Mon Jul 09, 2012 8:15 am
Forum: JFreeChart
Topic: mouse clicks in jfreechart !
Replies: 1
Views: 2937

Re: mouse clicks in jfreechart !

Hi! There is so direct support for this in JFreeChart, as your chart is just an image in a browser which doesn't know anything about JFreeChart. So you have to find a solution on the client-side. You could use image maps to divide your chart into regions (I thinks JFreeChart has some basic support f...
by matinh
Mon Jul 09, 2012 8:09 am
Forum: JFreeChart
Topic: Graph:Mouse over interest point
Replies: 3
Views: 7421

Re: Graph:Mouse over interest point

Try to search this forum for TooltipGenerator and see what you can do.

- martin