I have been working with JFreeChart for more than a decade, and picked up a thing or two along the way.
If you are unsure about what a property does, just play around, change it, and see in what way it affects the output.
Search found 1634 matches
- Fri Dec 08, 2017 6:19 pm
- Forum: JFreeChart
- Topic: Left Scale Label Being Clipped
- Replies: 3
- Views: 5287
- Fri Dec 08, 2017 10:25 am
- Forum: JFreeChart
- Topic: Left Scale Label Being Clipped
- Replies: 3
- Views: 5287
Re: Left Scale Label Being Clipped
Code: Select all
plot.setInsets(new RectangleInsets(4,20,4,20));
- Thu Dec 07, 2017 9:52 am
- Forum: JFreeChart
- Topic: addDomainMarker label not visible in dynamic plot
- Replies: 12
- Views: 15815
Re: addDomainMarker label not visible in dynamic plot
I just checked the sourceforge-patch page. It contains three zip files, one incomplete with 6 files, and the other ones complete with 10 files. The most recent one (from january 28th, 2017) is complete, and also contains the multiline-label-feature.
- Wed Dec 06, 2017 7:50 pm
- Forum: JFreeChart
- Topic: Tooltip in Interval Marker- JFreeChart
- Replies: 3
- Views: 5274
Re: Tooltip in Interval Marker- JFreeChart
In this thread, I have posted a code example. RUn that and move the mouse over the range annotation labelled "Range interval" that goes from 50 to 100 along the y axis. You should see a tool tip. The text can be changed by usingh a different string as parameter for the setToolTipText-method.
- Wed Dec 06, 2017 7:39 pm
- Forum: JFreeChart
- Topic: addDomainMarker label not visible in dynamic plot
- Replies: 12
- Views: 15815
Re: addDomainMarker label not visible in dynamic plot
You need to include all files from the ZIP file that you get from the patch on sourceforge.
- Tue Dec 05, 2017 7:58 pm
- Forum: JFreeChart
- Topic: Trick For Mouse Action Listener on Marker
- Replies: 2
- Views: 4122
Re: Trick For Mouse Action Listener on Marker
Not with a marker, but an annotation should do the job, at least if the plot is an XYPlot. See here. The annotations described in the linked thread support tool tips and entities, which is a prerequisite for some interactivity.
- Tue Dec 05, 2017 7:55 pm
- Forum: JFreeChart
- Topic: Jfree Line Chart with Multiple Labeled Threshold lines
- Replies: 1
- Views: 3190
Re: Jfree Line Chart with Multiple Labeled Threshold lines
Unfortunately, I have no access to your C: drive, so I cannot see the image.
- Tue Dec 05, 2017 12:40 pm
- Forum: JFreeChart
- Topic: Tooltip in Interval Marker- JFreeChart
- Replies: 3
- Views: 5274
Re: Tooltip in Interval Marker- JFreeChart
Both issues can be resolved by using a custom annotation. Here is a link to a forum thread with a description of some annotation classes that behave similarly to markers but offer more features.
- Fri Dec 01, 2017 5:05 pm
- Forum: JFreeChart
- Topic: TaskSeriesCollection in one row
- Replies: 2
- Views: 3996
Re: TaskSeriesCollection in one row
// DOES NOT WORK double time = System.currentTimeMillis(); series[0].add(0, -0.3, 0.3, time, time - 150000, time + 150000); return dataset; Here you are saying that the range of x values goes from -0.3 to 3, but your x Axis is a DateAxis. You need to revert the x and y coordinates: series[0].add(ti...
- Fri Dec 01, 2017 4:41 pm
- Forum: JFreeChart
- Topic: JFreeChart Image and Itext 7
- Replies: 3
- Views: 5900
Re: JFreeChart Image and Itext 7
Your question is independent on JFreeChart. It it is about replacements for PdfGraphcis2D, and PdfContentByte, and in more general sense about how to integrate instance of java.awt.Image into a PDF.
- Thu Nov 30, 2017 10:42 pm
- Forum: JFreeChart
- Topic: JFreeChart Image and Itext 7
- Replies: 3
- Views: 5900
Re: JFreeChart Image and Itext 7
itext has undergone a complete API change between version 5 and 7. I suggest to contact itext directly.
- Wed Nov 29, 2017 12:57 pm
- Forum: JFreeChart
- Topic: Borders of Category Markers
- Replies: 8
- Views: 7481
Re: Borders of Category Markers
Alternatively, you can write a custom CategoryAnnotation that is doing the job. IN this way, you do not have to change the source code of JFreeChart. Some time ago, I have written a set of annotations that can serve as marker replacements. Here is a link to the forum thread , where you will find a l...
- Wed Nov 29, 2017 10:48 am
- Forum: JFreeChart
- Topic: Vector Plot
- Replies: 1
- Views: 3203
Re: Vector Plot
The VectorRenderer draw arrows from x,y to x+dx, y+dy. The major issue that I see is that the renderer does the conversion from data space (the dx and dy values) to Java 2D space (the length with which the lines are drawn in the chart) by the domain and range axis. Since the axes represent time, and...
- Wed Nov 29, 2017 10:09 am
- Forum: JFreeChart
- Topic: Borders of Category Markers
- Replies: 8
- Views: 7481
Re: Borders of Category Markers
If I don't use the 3D BarRenderer, is it possible to change the width of the markers that it has the same width like the areas without marker? A CategoryMarker will either be drawn as a line or as a rectangle, depending on the return value of getDrawAsLine(). The rectangle will cover the entire spa...
- Tue Nov 28, 2017 8:58 pm
- Forum: JFreeChart
- Topic: Borders of Category Markers
- Replies: 8
- Views: 7481
Re: Borders of Category Markers
I can't say that I have understood exactly what is wrong. I assume that the medium gray areas, that can hardly be distinguished from the plot walls, are the markers? I checked the code for BarRenderer3D, and this renderer doesnot override drawDomainMarker (which it should). I can only advice to have...