XYLineAndShapeRenderer « Renderer « JFreeChart Q&A





1. ItemLabelPosition in XYLineAndShapeRenderer    jfree.org

TimeSeriesChart is not able to display the item values. I am overriding the renderer and still not able to display the item values. I tried setting the ItemLabelPosition.. Didn't work XYItemRenderer r = plot.getRenderer(); if (r instanceof XYLineAndShapeRenderer) { XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer) r; renderer.setLabelGenerator(new StandardXYLabelGenerator()); ItemLabelPosition itmPosition = new ItemLabelPosition(ItemLabelAnchor.OUTSIDE4, TextAnchor.CENTER_LEFT); renderer.setPositiveItemLabelPosition(itmPosition); renderer.setDefaultShapesVisible(true); renderer.setDefaultShapesFilled(true); renderer.setItemLabelsVisible(true); } I tried overriding Renderer ...

5. ChartMouseListener, XYLineAndShapeRenderer and lines    jfree.org

Hi, everybody. I've implement a ChartMouseListener, but when i "click" over (the edge of) a line in my chart, the ChartMouseEvent has a null entity (ChartEntity). Everything works fine if i click over the vertices of that line. I'm using XYLineAndShapeRenderer to render data. I think that the problem occurs because when StandardEntityCollection.getEntity(x, y) is getting called, the "getArea" of XYItemEntity ...

7. XYLineAndShapeRenderer Legend problem    jfree.org

To create the charts I am using JFreeChart 0.9.21 and JCommon 0.9.6. I'm using OSJava's custom applet renderer to render my JFreechart. I need to set the 5th line to be a shape. It can be found here: osjava.com It is the report-runner-0.5 The code I'm using is: XYLineAndShapeRenderer renderer = new XYLineAndShapeRenderer(); renderer.setSeriesShape(5, new Ellipse2D.Double(-2.0, -2.0, 4.0, 4.0)); renderer.setDefaultShapesVisible(false); renderer.setSeriesShapesFilled(5, ...

9. XYLineAndShapeRenderer question    jfree.org

XYLineAndShapeRenderer question by Vespasian Fri Dec 01, 2006 11:10 pm I am using a XYLineAndShapeRenderer to create a XY line plot combined with a Histogram plot. WHen the plot is displayed, the Bars of the histogram paint over the line of the Line plot. How do I configure the plot so the lines paint over the bars. Below is the ...





10. XYItemEntity using XYLineAndShapeRenderer    jfree.org

Hi... I'm new to Jfreechart. I'm using ChartComposite to embbed XYLineChart. I'd like to get items data using XYItemEntity but i get a ClassCastException. (I use XYLineAndShapeRenderer). It seems that we can only get a collection of ChartEntity with this renderer. How can i get a collection of XYItemEntity instead of ChartEntity ? . u can see the example below : ...

11. XYLineAndShapeRenderer shape borders dont show up    jfree.org

by david.gilbert Fri May 11, 2007 11:14 am The renderer both fills and outlines the shapes that are drawn at each data point. If you call setDrawOutlines(false), the shapes are filled only. The other flag (useOutlinePaint) controls whether the shape's outline is drawn with the seriesPaint (useOutlinePaint==false) or the seriesOutlinePaint (useOutlinePaint==true). The following demo shows some of the different styles ...

13. XYLineAndShapeRenderer help    jfree.org

14. XYLineAndShapeRenderer-has problem    jfree.org

The first problem, at least, is a bug in an optimisation introduced in JFreeChart 1.0.6, where the renderer tries to process only the items that are visible in the chart (which can save a lot of processing if the data items are ordered by x-value). The problem is that the drawSeriesLineAsPath option assumes that the renderer will be passed the 0 ...

15. Override XYLineAndShapeRenderer?    jfree.org

I need to plot a line (TimeSeries) with 5 datapoints. I need to plot a shape (Rectangle/square) at each datapoint. I have already done this, but i need to change the color of the shapes. That is... I want to plot the line (timeseries) in blue, but the first datapoint (value) should be in red, the second in blue, the third ...





18. overriding drawItem() in XYLineAndShapeRenderer?    jfree.org

Hi all, i am trying to paint a small circle on certain points on my graphs. this points are painted to represent certain events that occur at specifc random point in the data series. from looking around pass topics i think i have to overwrite the drawItem() from XYLineAndShapeRenderer. This is proving hard for me to do. is creating an innerclass ...

20. Problem using XYTaskDataset with XYLineAndShapeRenderer    jfree.org

Problem using XYTaskDataset with XYLineAndShapeRenderer by karthiek Thu Feb 19, 2009 7:16 am Hi all, I am pretty new to JFreeCharts and first of all thanks for this great library. I am facing a problem while using XYTaskDataset along with XYLineAndShapeRenderer. The line points are not appearing at correct positions (relative to date axis, ie my domain axis) as given ...

21. Need help with Shape and XYLineAndShapeRenderer    jfree.org

Hello! I have a following problem and need your help: I have 10 datasets, every dataset consists of one point. I want to see all points on one charts at the same time and they all should have as Shape "Ellipse" and they all should have different colour. I can't set the Shape for these points. 2 points from different datasets ...

22. XYLineAndShapeRenderer - Different color for data points    jfree.org

Hi, I am using version 1.0.0 and creating TimeSeries Chart with XYLineAndShapeRenderer. I need help for the below, 1. To Show itemlabel for some of the points in a series. I'm using below to get item label, but nothing displayed renderer.setItemLabelGenerator( new StandardXYItemLabelGenerator()); renderer.setItemLabelsVisible(true); 2. Show some of the data points in different color ( I am overriding getItemPaint(row, col), but ...

23. XYLineAndShapeRenderer: problems with dotted or dashed lines    jfree.org

XYLineAndShapeRenderer: problems with dotted or dashed lines by cornuto007 Mon Jul 20, 2009 10:53 pm Dear all, I have the following code in an application, that is used for displaying large sets of simulation data offline interactively, i.e. the user can select what variable to plot in what color, specify markers and the line type (solid, dashed, dotted) and line ...

24. How to Set ToolTip Font/Color for XYLineAndShapeRenderer    jfree.org

How to set the Font and Foreground/Background Color of ToolTip for XYLineAndShapeRenderer. This is how I create stuff; Code: Select all public class MyDataset extends XYSeriesCollection { private ArrayList annotations; private XYLineAndShapeRenderer renderer; private void configure(XYPlot plot, int seriesIndex) { // GET XY Series Data ...