Search found 201 matches

by remiohead
Mon Apr 20, 2015 7:04 pm
Forum: JFreeChart
Topic: Scrollbar in a line chart
Replies: 5
Views: 6702

Re: Scrollbar in a line chart

We need to see the code you used with the JScrollPane.
by remiohead
Thu Dec 11, 2014 4:13 pm
Forum: JFreeChart
Topic: PieChart - Background of the ChartPanel
Replies: 2
Views: 4121

Re: PieChart - Background of the ChartPanel

ChartPanel extends from JPanel which extends from JComponent. The method to use is:

Code: Select all

setBackground(java.awt.Color)
In conjunction with

Code: Select all

setOpaque(boolean isOpaque)
by remiohead
Wed Dec 10, 2014 2:04 pm
Forum: JFreeChart
Topic: Mouse events in web applications
Replies: 5
Views: 6702

Re: Mouse events in web applications

Documentation for the draw() method in SVGGraphics2D. Draws the specified shape with the current {@code paint} and @code stroke}. There is direct handling for {@code Line2D}, @code Rectangle2D} and {@code Path2D}. All other shapes are mapped to a {@code GeneralPath} and then drawn (effectively as {@...
by remiohead
Fri Aug 01, 2014 7:46 pm
Forum: JFreeSVG
Topic: Text alignment problem in OpenJDK
Replies: 2
Views: 29113

Re: Text alignment problem in OpenJDK

Image

JFreeSVG 2.0 is a big improvement. The vector option did confirm the correct font is being used but we can't use that as the text needs to be selectable for copy/paste.

I'll update the thread if I figure out a solution.
by remiohead
Thu Jul 31, 2014 9:46 pm
Forum: JFreeSVG
Topic: Text alignment problem in OpenJDK
Replies: 2
Views: 29113

Text alignment problem in OpenJDK

https://dl.dropboxusercontent.com/u/7888334/rendering.png Running JFreeSVG on AWS/OpenJDK 1.7.0_51 and the text measuring appears to be off quite a bit (see the left chart in the image above). The chart on the right was generated on my Windows development machine running identical code. My first th...
by remiohead
Tue Jul 01, 2014 1:21 pm
Forum: JFreeSVG
Topic: Duplicate ids under <defs>
Replies: 3
Views: 31045

Re: Duplicate ids under <defs>

Awesome, thanks David. I need to pay closer attention to the change log in the future.

Thanks again for this fantastic tool.
by remiohead
Mon Jun 30, 2014 9:28 pm
Forum: JFreeSVG
Topic: Duplicate ids under <defs>
Replies: 3
Views: 31045

Re: Duplicate ids under <defs>

This could also be handled automatically by default, while providing the ability to set a custom prefix. When testing a fix for this myself I used the system time as the prefix.
by remiohead
Mon Jun 30, 2014 9:18 pm
Forum: JFreeSVG
Topic: Duplicate ids under <defs>
Replies: 3
Views: 31045

Duplicate ids under <defs>

When showing more than one SVG document on the same page the shared resources under <defs> have duplicate ids. This is especially problematic with clip refs. We need a method to set a prefix that will be used when creating ids for clips and paints.
by remiohead
Wed Jun 18, 2014 10:03 pm
Forum: JFreeSVG
Topic: shape-rendering attribute
Replies: 1
Views: 26546

shape-rendering attribute

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering I think this should be set to "crispEdges" for horizontal and vertical lines, rectangles, and Path2D shapes made up only of horizontal and vertical lines. The result looks considerably better for almost all JFreeCharts I hav...
by remiohead
Thu Apr 24, 2014 5:29 pm
Forum: JFreeSVG
Topic: Center Gradients from JFreeChart
Replies: 1
Views: 11169

Center Gradients from JFreeChart

I needed a solution that would display the center vertical and center horizontal gradients from JFreeChart in SVG. As you rightly pointed out some months ago this is not straightforward. What I ended up doing was allowing JFreeChart to work with LinearGradientPaint and adding that as a supported gra...
by remiohead
Tue Apr 15, 2014 8:50 pm
Forum: JFreeSVG
Topic: JFreeSVG 1.8
Replies: 4
Views: 16459

Re: JFreeSVG 1.8

Thanks for the updates David. Love the map option with KEY_BEGIN_GROUP. Support for custom key/values as part of that would be useful. This is the kind of thing I have in mind: String groupId = null; String ref = null; List<Entry> keyValues = null; if (hintValue instanceof String) { groupId = (Strin...
by remiohead
Wed Apr 02, 2014 3:46 pm
Forum: JFreeChart
Topic: Align Rectangles to bars of BarChart
Replies: 6
Views: 7897

Re: Align Rectangles to bars of BarChart

As David said in the linked post, you'll most likely need to override the draw() method of the JFreeChart class to accomplish this. Note that this method allows you to provide a ChartRenderingInfo object. You can use this to get the position of various entities drawn, including the bars. You'll need...
by remiohead
Wed Apr 02, 2014 12:58 pm
Forum: JFreeChart
Topic: Align Rectangles to bars of BarChart
Replies: 6
Views: 7897

Re: Align Rectangles to bars of BarChart

Have you considered Annotations?

http://www.jfree.org/jfreechart/api/jav ... ation.html

You could override the draw method to do additional formatting.
by remiohead
Tue Mar 04, 2014 6:35 pm
Forum: JFreeChart
Topic: XYLineChart- smooth line, XYSplineRenderer not working
Replies: 10
Views: 15250

Re: XYLineChart- smooth line, XYSplineRenderer not working

You have two points, p1 and p2, the points before and after (p0 and p3) are used as control points for constructing the interpolation between p1 and p2. If you want more details you can follow the link from my original reply. There is a variable called tension which is set to a default value of 0.5....