Search found 201 matches
- Tue Dec 17, 2013 2:52 pm
- Forum: JFreeSVG
- Topic: JFreeSVG 1.3
- Replies: 9
- Views: 25424
Re: JFreeSVG 1.3
Some feedback/ideas based on scenarios I've come across in my own usage: 1. To be able to specify a url for an image (possibly a setImageUrl(String url) method in SVGGraphics2D). It would be the responsibility of the caller to set the image source prior to calling drawImage() and clear afterwards. 2...
- Tue Dec 10, 2013 11:22 pm
- Forum: JFreeSVG
- Topic: Illegal characters in XML
- Replies: 1
- Views: 9125
Illegal characters in XML
Firstly may I say the library is absolutely amazing.
Only problem I've noticed so far is that &, < and > should be encoded in strings as they're illegal in XML.
Thanks again.
Only problem I've noticed so far is that &, < and > should be encoded in strings as they're illegal in XML.
Thanks again.
- Thu Jun 27, 2013 12:53 pm
- Forum: JFreeChart
- Topic: Ignore Zero values in XY line Chart
- Replies: 12
- Views: 11775
Re: Ignore Zero values in XY line Chart
You are a programmer right? The JFree source code is one large sample. Take XYLineAndShapeRenderer as your base, learn how it works, figure out which methods need to be modified and then do it.
- Wed Jun 26, 2013 8:48 pm
- Forum: JFreeChart
- Topic: Ignore Zero values in XY line Chart
- Replies: 12
- Views: 11775
Re: Ignore Zero values in XY line Chart
Write your own renderer (or extend XYLineAndShapeRenderer) to do what you want. There is no built in way to ignore zero.
- Wed Jun 26, 2013 2:20 pm
- Forum: JFreeChart
- Topic: Ignore Zero values in XY line Chart
- Replies: 12
- Views: 11775
Re: Ignore Zero values in XY line Chart
Do not add the point to the dataset if the values are zero?
- Mon Jun 10, 2013 10:14 am
- Forum: JFreeChart
- Topic: Please help with NullPointerException
- Replies: 2
- Views: 4181
Re: Please help with NullPointerException
Best I can tell you're referencing a static XYPlot called plot but it is never assigned to. This is throwing the null pointer exception when you try and add the annotation.
- Fri Jun 07, 2013 7:27 pm
- Forum: JFreeChart
- Topic: Avoid null in dataset for line chart
- Replies: 2
- Views: 3218
Re: Avoid null in dataset for line chart
I don't think that capability is built in. I suggest creating a custom LineAndShapeRenderer. In the drawItem() method you would need to keep searching back until you found a non-null value (or reached the start) and use that column index for the start point. Currently it draws no line if the previou...
- Thu Jun 06, 2013 6:11 pm
- Forum: JFreeChart
- Topic: Different line colors on multiple axis graphs
- Replies: 4
- Views: 5561
Re: Different line colors on multiple axis graphs
Not sure why clone is not working (which version are you using?) Instead of cloning just create a new one. XYLineAndShapeRenderer renderer0 = (XYLineAndShapeRenderer)plot.getRenderer(); XYLineAndShapeRenderer renderer1 = new XYLineAndShapeRenderer(); renderer0.setSeriesPaint(0, Color.BLUE); renderer...
- Thu Jun 06, 2013 3:46 pm
- Forum: JFreeChart
- Topic: Empty Bar Chart drawing a vertical line
- Replies: 5
- Views: 5582
Re: Empty Bar Chart drawing a vertical line
If you read my message you'll note I was talking about XYPlot. The naming is slightly different in CategoryPlot because there is only one of them. This may not be the problem either, but it is very similar to an issue we had with XYPlot.
- Thu Jun 06, 2013 1:09 pm
- Forum: JFreeChart
- Topic: Empty Bar Chart drawing a vertical line
- Replies: 5
- Views: 5582
Re: Empty Bar Chart drawing a vertical line
Check the zero range baseline. I had a similar issue with XYPlot and it turned out to be the range zero baseline.
- Wed Jun 05, 2013 3:30 pm
- Forum: JFreeChart
- Topic: non-global Tooltip settings questions
- Replies: 2
- Views: 3318
Re: non-global Tooltip settings questions
See these methods in ChartPanel which can be customised on a per panel basis. They work by setting the appropriate properties in ToolTipManager on mouse entry and reset the original values on mouse exit. public void setInitialDelay(int delay) public void setReshowDelay(int delay) public void setDism...
- Tue Jun 04, 2013 10:12 pm
- Forum: JFreeChart
- Topic: How to create a custom annotation for a category barchart.
- Replies: 1
- Views: 2681
Re: How to create a custom annotation for a category barchar
CategoryTextAnnotation is probably a good example of the kind of thing you need to implement. But it's just a guide, you'll probably need to implement something from scratch.
- Tue Jun 04, 2013 9:57 pm
- Forum: JFreeChart
- Topic: Different line colors on multiple axis graphs
- Replies: 4
- Views: 5561
Re: Different line colors on multiple axis graphs
Use two renderers, not one. In each renderer it is the series 0 colour that you need to set. Something like this should work (untested) XYLineAndShapeRenderer renderer0 = (XYLineAndShapeRenderer)plot.getRenderer(); XYLineAndShapeRenderer renderer1 = (XYLineAndShapeRenderer)renderer0.clone(); rendere...
- Fri May 31, 2013 8:28 pm
- Forum: JFreeChart
- Topic: How to place vertical label inside barchart
- Replies: 1
- Views: 2604
Re: How to place vertical label inside barchart
Do you mean rotated data labels? ItemLabelPosition (http://www.jfree.org/jfreechart/api/jav ... ition.html) allows you to specify an angle.
- Fri May 31, 2013 7:58 pm
- Forum: JFreeChart
- Topic: Big Legend Hides Graph
- Replies: 9
- Views: 9309
Re: Big Legend Hides Graph
Create a LegendPanel that extends JPanel. LegendPanel will require a LegendTitle and in the paintComponent() method it will call the draw method of LegendTitle. The LegendItemSource for your LegendTitle will be the plot, unless you want to customise it. Note, I was not asking for the code to your ap...