Search found 201 matches
- Tue Mar 04, 2014 3:05 pm
- Forum: JFreeChart
- Topic: XYLineChart- smooth line, XYSplineRenderer not working
- Replies: 10
- Views: 15373
Re: XYLineChart- smooth line, XYSplineRenderer not working
It's not a problem. So far as I can tell, this is the correct result for these data points. You can reduce the tension closer to 0 to have less of a curve. Otherwise you'll need to implement a different type of spline.
- Mon Mar 03, 2014 8:15 pm
- Forum: JFreeChart
- Topic: XYLineChart- smooth line, XYSplineRenderer not working
- Replies: 10
- Views: 15373
Re: XYLineChart- smooth line, XYSplineRenderer not working
I plotted those data points and it looks fine to me. Please post a self-contained runnable example showing what you describe.
- Thu Feb 27, 2014 11:05 pm
- Forum: JFreeChart
- Topic: XYLineChart- smooth line, XYSplineRenderer not working
- Replies: 10
- Views: 15373
Re: XYLineChart- smooth line, XYSplineRenderer not working
Here is an alternative based on this Stackoverflow answer http://stackoverflow.com/a/15528789 I put this together very quickly so I cannot vouch for correctness nor have I tested it for more than a few minutes. import java.awt.Graphics2D; import java.awt.geom.Point2D; import java.awt.geom.Rectangle2...
- Thu Feb 13, 2014 4:53 pm
- Forum: JFreeChart
- Topic: ItemLabel at bottom center of bar
- Replies: 1
- Views: 2659
Re: ItemLabel at bottom center of bar
For non rotated text I use this
Looks like you have a 90 degree rotation, in which case I would use this for the text anchor.
Code: Select all
ItemLabelAnchor.INSIDE6
TextAnchor.BOTTOM_CENTER
TextAnchor.CENTER
Code: Select all
TextAnchor.CENTER_LEFT
- Thu Feb 13, 2014 4:13 pm
- Forum: JFreeChart
- Topic: Bar chart showing same color for the multiple bars
- Replies: 5
- Views: 6455
Re: Bar chart showing same color for the multiple bars
Can you provide a self contained example please? (See http://sscce.org/).
- Fri Feb 07, 2014 3:27 pm
- Forum: JFreeSVG
- Topic: SVG Pattern Paint
- Replies: 3
- Views: 12907
Re: SVG Pattern Paint
Extending from TexturePaint addresses the screen issue somewhat. This is the class I'm using in my app. public interface SVGPaint extends Paint { public void writeSvg( final String id, final SVGGraphics2D g2, final StringBuilder sb); } public class SVGTexturePaint extends TexturePaint implements SVG...
- Wed Jan 29, 2014 10:03 pm
- Forum: JFreeChart
- Topic: JFreeChart AttributedString: how to get axis Label ?
- Replies: 6
- Views: 8548
- Wed Jan 29, 2014 5:45 pm
- Forum: JFreeSVG
- Topic: id attribute to svg group object.
- Replies: 5
- Views: 42899
Re: id attribute to svg group object.
A general solution is to create two new hints. KEY_GROUP_START begins a new group (with optional id) and KEY_GROUP_END closes a group. This allows nested groups which has proven to be very useful.
- Wed Jan 29, 2014 5:39 pm
- Forum: JFreeSVG
- Topic: id attribute to svg group object.
- Replies: 5
- Views: 42899
Re: id attribute to svg group object.
It's not possible in the current library. Have you tried wrapping the text inside of a rect (perhaps with 0 width stroke) that does have an id?
- Tue Jan 28, 2014 4:38 pm
- Forum: JFreeSVG
- Topic: Interactive SVG charts/images
- Replies: 3
- Views: 37925
Re: Interactive SVG charts/images
I'll tell what I do to achieve a similar result. First, give each data point a unique id before it is drawn (requires extending renderers): g2.setRenderingHint(SVGHints.KEY_ELEMENT_ID, uniqueId); We have a UI for assigning actions to be executed for events in the browser (click, mouse out, mouse ove...
- Mon Jan 27, 2014 11:56 pm
- Forum: JFreeSVG
- Topic: SVG Pattern Paint
- Replies: 3
- Views: 12907
SVG Pattern Paint
I wrote this class to add some basic geometric pattern paint support (we use such paints with JFreeChart). It uses SVGGraphics2D own paint methods to construct the pattern definition. Please feel free to incorporate it or parts of it or just the idea into any future version. public class SVGPatternP...
- Thu Jan 02, 2014 2:12 pm
- Forum: JFreeSVG
- Topic: JFreeSVG 1.5
- Replies: 6
- Views: 18078
Re: JFreeSVG 1.5
A hint to start a new group and a second hint to close a group would work better. This allows groups-within-groups to be created. In both cases the value would be unused.
- Thu Dec 19, 2013 8:13 pm
- Forum: JFreeSVG
- Topic: JFreeSVG 1.5
- Replies: 6
- Views: 18078
Re: JFreeSVG 1.5
Another request for a rendering hint please: It would be very useful to specify that subsequent drawing actions should be part of a group. For example, you would set this hint before drawing a chart. After the chart was drawn clearing the hint would close the group. The group would need to work with...
- Wed Dec 18, 2013 8:58 pm
- Forum: JFreeSVG
- Topic: JFreeSVG 1.5
- Replies: 6
- Views: 18078
Re: JFreeSVG 1.5
David,
Thank you for the really quick update.
One issue: SVGUtils.escapeForXML tries to call org.jfree.chart.util.ParamChecks.nullNotPermitted which results in a NoClassDefFoundError. Probably supposed to be Args.nullNotPermitted.
Thank you for the really quick update.
One issue: SVGUtils.escapeForXML tries to call org.jfree.chart.util.ParamChecks.nullNotPermitted which results in a NoClassDefFoundError. Probably supposed to be Args.nullNotPermitted.
- Wed Dec 18, 2013 2:40 pm
- Forum: JFreeSVG
- Topic: JFreeSVG 1.3
- Replies: 9
- Views: 23581
Re: JFreeSVG 1.3
Thanks for your replies David.
The id is required to be unique so validating them is the right thing to do.david.gilbert wrote:I'm undecided yet about whether to validate the ids (for uniqueness) or leave that as a responsibility for the caller. Any thoughts?