Renderer « Renderer « JFreeChart Q&A





1. Getting Renderer for Existing Chart    stackoverflow.com

I added a feature to allow users to toggle item labels on charts. This is implemented by saving a pointer to the XYItemRenderer and calling the renderer's setBaseItemLabelsVisible method to ...

2. Tool tips not showing up when using a Custom Renderer    jfree.org

Tool tips not showing up when using a Custom Renderer by Craig Mon Aug 22, 2005 11:20 pm Hi, I am using several charts in my application. However, the tool tips are not showing up on the charts where I am defining a Custom Renderer. My renderer looks like this: Code: Select all private class CustomRenderer extends BarRenderer3D { ...

3. Hung thread on org.jfree.chart.renderer.LineAndShapeRenderer    jfree.org

We are seeing some odd behavior when trying to display a ceWolf chart. The thread trying to display the graph hangs on a method called org.jfree.chart.renderer.LineAndShapeRenderer.drawItem. I noticed in the jfreechart javadoc that the LineAndShapeRenderer is in a package called org.jfree.chart.renderer.category. Do you know if this class has been moved from one package to the other in a previous version of ...

4. Bug in handling multiple renderer / axes    jfree.org

I guess I've found a bug or at least a missing functionality in the support of multiple renderer or axes: Assume the following situation: If you want to plot different objects that are ordered in a way that is reflected by an index number of the object. If you want to decide which of the objects to plot it is helpful ...

5. Problems with Label position in my own renderer.    jfree.org

Hi i have a little problem. For some reason i must build my own GanttRenderer and use it in one of many plots. problem is that when i use plot defoult renderer the ItemLabelPosition is on right of bar, but when i use my own renderer the position is up-center of a bar. I cannot find any way to change this ...

6. margin not honoured using LineAndShape renderer.    jfree.org

margin not honoured using LineAndShape renderer. by vijay Fri Nov 25, 2005 3:26 pm I have a overlaid chart where with category data set. All data sets are rendered by LineAndShape renderer. Setting the lowerMargin and upperMargin to zero is not honoured. I have modified the OverLaidBarcharDemo1 to reflect the requirement. The change being, instead of a bar renderer for ...

7. renderer questions    jfree.org

so i pressed my mouse on the point with 2 rectangle, and the cross line appeared on the other point( the lower rectangle). this red line belongs to the rightside y axis and the crossline pointed to the leftside y axis. this is the point, i don't know whether i put my meaning nice and clear. hmmm, can u help me ...

8. addRangeMarker problem adding to specific renderer    jfree.org

by Geshka Tue Feb 07, 2006 7:37 pm Hello Dave. Thanks for prompt reply here is snippet of code, though a bit messy. Code: Select all AvailabilityXYPlot availabilityXYPlot = new AvailabilityXYPlot(); // set axis margins to allow space for marker labels... ...

9. Doubling width of line in OHLC Renderer    jfree.org

Doubling width of line in OHLC Renderer by q2klepto Wed Apr 12, 2006 9:47 pm the renderer takds 0->n-1 items and draws the range, open and close ticks no problem i have it so it determines what the last item is and sets the line to a different color..works fine but in the same block of code where it does ...





10. XYPointerAnnotations that vary with renderer    jfree.org

The constructor for an XYPointerAnnotation takes an x and y coordinate which serves as the location for the annotation. Is there any means to associate an annotation with an element from a series and not an arbitrary coordinate generated when the element was added to the series/dataset? That way, if the dataset is rendered with a StackedXYAreaRenderer, the annotation would still ...

11. Customised dataset & renderer not displaying chart    jfree.org

www.jfree.org View topic - Customised dataset & renderer not displaying chart www.jfree.org Free Java software for data analysis and presentation Skip to content Advanced search Board index JFreeChart JFreeChart - General Change font size FAQ Register Login Customised dataset & renderer not displaying chart A free public discussion forum for the JFreeChart class library. Post a reply 1 ...

12. XYPlot & renderer[0]    jfree.org

XYPlot & renderer[0] by Kousu Mon Mar 19, 2007 8:11 pm XYPlot in some parts of the code seems to assume that there is always a default renderer defined. E.g. from render(): Code: Select all XYItemRenderer renderer = getRenderer(index); ...

14. Chart Renderer    jfree.org

16. I have written a new BoxAndWhisker Renderer -    jfree.org

I work on ioGAS which uses JFreeChart a lot. We needed a Tukey plot, to identify outliers in Geochem data. Rather than starting from scratch it was easier to use the JFree framework. Essentially I have written a new renderer to replace the existing one. See header below. If this is useful I can send the source code (somewhere?). I had ...





17. renderer.setOutlineStroke(....)    jfree.org

18. can't override renderer?    jfree.org

hi everybody, im trying to customize my renderer, here's how: Code: Select all private static class MyBarRenderer3D extends BarRenderer3D { public MyBarRenderer3D(){ super(); System.out.println("constructor"); } ...

19. using a renderer on particular values    jfree.org

Is it possible to use a rederer to draw a shape on a particular value? My code to draw a shape is as follows: CategoryPlot plot = (CategoryPlot) chart.getPlot(); LineAndShapeRenderer renderer = (LineAndShapeRenderer) plot.getRenderer(); renderer.setShapesVisible(true); renderer.setDrawOutlines(true); renderer.setUseFillPaint(true); renderer.setFillPaint(Color.white); but this puts the shape on each value, i just want it on certain ones, then I want to put a customized tool ...

20. Dataset with sums - Renderer with percentages?    jfree.org

I am analyzing the the results of anual surveys. My DefaultCategoryDataset contains the answers as rows, and the years as columns. Each field in the table contains the absolute values (sums), i. e. the number of persons who selected this answer. So in my case, "66" doesn't mean "66%" (as usually imposed by JFreeChart), but "66 people of all the participants". ...

21. BubbleRose renderer    jfree.org

BubbleRose renderer by ddimitrov Tue Jan 22, 2008 8:11 am I extended the bubble renderer to display different arc section for each series. The result is that for each point of the XY plot, you get a mini rose diagram, showing the magnitude of the Z dimention of each series. This gives a clearer picture when we have multiple series ...

23. Color renderer    jfree.org

24. NullPointerException in renderer    jfree.org

NullPointerException in renderer by tedbyers Mon Mar 10, 2008 9:32 pm I am using the latest version of jFreeChart, in a servlet. For quite a while, all has been well. But now, i am trying something a little different and am thwarted by this exception. Here is the relevant part of the trace (from the Tomcat 6 log): SEVERE: Servlet.service() ...

27. XYPlot renderer    jfree.org

28. My renderer wont change shapes (XYDotRenderer)    jfree.org

Im trying to change a shape: XYDotRenderer dotRenderer = new XYDotRenderer(); dotRenderer.setPaint(Color.black); dotRenderer.setDotHeight(3); dotRenderer.setDotWidth(3); dotRenderer.setBaseShape(org.jfree.chart.plot.DefaultDrawingSupplier.DEFAULT_SHAPE_SEQUENCE[6]); xyplot.setRenderer(0, dotRenderer); I have gone over all the setshape methods in the renderer but non works, it is always the same rectangle. If i try dotRenderer.setLegendShape(Shape) it works fine... but not the shape of the dot itself.. ideas?

29. Clear annoations added on Renderer    jfree.org

Hi, I have a problem deleting annotations that I've added on a LineAndShape or Step renderer. plot.clearAnnotations() works fine for annotations added with the plot.addAnnotation(annotation) method. When added with renderer.addAnnotation(annotation) method calling clearAnnotations on the plot does nothing. Which seems reasonable... but how do I clear annotations added on the renderer? Thanks Stelios

30. problem in dealing with renderer    jfree.org

problem in dealing with renderer by chittora Tue Sep 16, 2008 12:13 pm Hi all , i wrote a program to display the values of bar at the top of the bar and to display the percentage inside the bar , but i think one renderer is overwriting the other Please do let me know how to modify the prog ...

31. renderer method call taking time in version 11    jfree.org

why setSeriesItemLabelsVisible(int,boolean),setSeriesItemLabelPaint(int,Color),..... methods are taking more time in version 11 than version 9???each method call for renderer(i checked for bar chart) is taking more than 1.6 ms ...before when i was using version 9 ..it was 0.0 ms...now if the no of series is more...the chart is taking more time to show up...i can go and can finish a coffee to ...

32. Line Renderer    jfree.org

I am in the process of evaluating various chart libraries. One requirement that is proving tough to satisfy is contour plotting. I have implemented the Java version of Bourke's contour algorithm found at local.wasp.uwa.edu.au/~pbourke/papers/conrec/. The contour algorithm creates unordered line segments that when drawn show the various contours for x,y,z values. I have reviewed the JFreeChart API, and do not see ...

34. Renderer's LegendTitle out of sync...    jfree.org

Renderer's LegendTitle out of sync... by glob157 Wed Apr 08, 2009 11:39 pm Hi guys ... Im using a custom renderer that extends the XYSplineRenderer. It only overrides the getItemPaint method. However, when I add a title legend which takes my custom renderer as input... it turns out that the title legend uses default legend colors instead of the ones ...

35. Chart Mergins with Layered Renderer    jfree.org

I have an issue that is getting very confusing. I have a chart with a Category Plot. There are three rows and one column. So the chart should display three bars overlapping each other. I also have set the lower and upper margins for the plot to 0. The margins do get set to 0 when widest series is added last ...

36. How do cahnge the pallete used by a renderer?    jfree.org

Actually, I have three questions. The first is in the subject line. If I create a java.util.Vector, how can I use it to change the default pallete the renderer uses. I really don't care what colour is used for a given series. I just don't want certain colours used. For example, I have a custom renderer that uses precisely two colours, ...

37. Deviation renderer - drawing min/max as lines    jfree.org

Hello all, I am attempting to draw dashed lines along the top and bottom of a deviation renderer output. Right now the best idea I have to do that is to get the YIntervalSeries that backs the deviation renderer and make new XYSeries, one for the min, and one for the max, and then draw these series with a new renderer ...

38. lineandshape renderer    jfree.org

39. Which Renderer Should be Used For CCI    jfree.org

Re: Which Renderer Should be Used For CCI by paradoxoff Wed Oct 21, 2009 8:34 pm XYDifferenceRenderer seems indeed to be the only "single" renderer that can produce a chart like the one that you have sketched. The second series that is required by this renderer can be created from the data of the first series: Simply go through all ...

40. Project clarification - color renderer    jfree.org

I'm working on "color renderer API" project. Although I succeeded in coding and testing bar in the charts , I don't know if there is more requirement for this project. Could you let me know more requirements if any? ( FYI . abstractRenderer is modified and a new objectlist is appended )

41. XYDifference Renderer    jfree.org

42. Legend item colors and custom renderer    jfree.org

Legend item colors and custom renderer by dacosta Sat Dec 26, 2009 6:20 pm Hi, I have run into the following situation. A custom renderer changes its basr to red/green depending on a certain avg value. To the left and right of this bar i defined a blue and orange bar respectively. So far all works fine. Issue: The legend ...

43. Renderer points with different shapes in the same serie    jfree.org

Hello Please , is it possible to renderer some points with a special shape and the others with another one ?? those points are a part of the same serie ?? For exemple, the dots of the same domain are drawn with a rectangle can you give some indication ?? ( the name of the class that handle this ) something ...

44. Need Help using Renderer    jfree.org

Re: Need Help using Renderer by paradoxoff Sun Sep 05, 2010 11:14 am Check XYLineAnnotation. Here is a sample code: Code: Select all import java.awt.BasicStroke; import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; import java.awt.Image; import java.awt.geom.*; import java.awt.image.*; import javax.swing.JFrame; import java.io.*; import org.jfree.chart.*; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; import org.jfree.chart.annotations.*; import org.jfree.chart.axis.*; import org.jfree.chart.entity.*; import org.jfree.chart.labels.StandardXYToolTipGenerator; import org.jfree.chart.plot.*; import org.jfree.chart.renderer.xy.*; import ...

45. custom dataset + custom xy renderer    jfree.org

Hi, I'd like to use jfreechart to create custom time series charts. I'd like to get an advice to choose the approach. Instead of having data like { (x1,y1), (x2, y2), ... } data rather looks like { (x1,(y1,z1,t1,u1)), (x2, (y2,z2,t2,u2)), ... } The extra values in addition to y are used to draw a complex point (either a vertical stick, ...

46. CombinedDomainXYPlot Renderer Bug?    jfree.org

I have a project that I am using JFreeChart to display infrasound waveform data with. In this project, I want a single instance of ChartPanel to show individual waveform signals. I've been able to get this working just fine, but when I remove waveform data, I start to have problems. I have a CombinedDomainXYPlot that I'm using to display all of ...