jfreechart

JFreeChart XYPlot with labels

I'm using an XYPlot in JFreeChart. All the lines on it are XYSeries objects. Both axes are NumberAxis objects. The Y-Axis range is from 0-1, with ticks every .1. Along with displaying the numbers though, I'd like to display text on the Y-Axis, like High/Medium/Low. High would cover .7-1, etc. What is the best way to go about doing this? ...

How to add ChartFrame (JFreeChart library) to JFrame(javax.swing library)?

I can't directly add ChartFrame object to my Jframe object with .add(Component) method. And it's not possible to cast from ChartFrame to JComponent. Casting ChartFrame to Component from java.awt library is also impossible. How can I add ChartFrame to JFrame the other way? ...

How to set height to the SimpleHistogramBin bin in SimpleHistogramDataset?

I used setItemsCount() method to manage height of the bin in my SimpleHistogram from JFreeChart. Yet, it does something weird: when I set for example 1, it shows 1.4 Besides this method's argument is Integer, while i need double ...

show the value of the graph when cursor is placed on the graph

Hi, I am using jfreechart to draw the graphs. I need to show the value when the cursor is placed on the graph. Thanks in advance ...

Is there a simple way to remove a TimeSeries from a displayed JFreeChart Chart?

I have a Swing application which uses JFreeChart to display one of a series of queries. Some of these queries have a composite TimeSeries key. Each component of this key can contain a few values, but when rendered makes a very noisy graph. I would like a simple way for the users to hide/show some of the TimeSeries in the displayed Chart ...

increase clarity of a graph

I am using jfreechart for plotting graphs. The problem is that if have more entries on the X-axis, then the X-axis parameters are not visible. How should I solve that? ...

how to convert a string to RegularTimePeriod in java?

I am using Jfreechart. I have the code like this TimeSeries t1 = new TimeSeries("EUR/GBP"); t1.add(new Day(4, MonthConstants.JANUARY, 2001), new Double(1.5807)); But I get String from my SQL query. TimeSeries accepts only RegularTimePeriod or TimeSeriesDataItem. Please let me know how to convert a String into RegularTimePeriod. Thank...

how to convert a string into TimeSeriesDataItem

I am using Jfreechart. I have the following code: TimeSeries t1 = new TimeSeries("EUR/GBP"); t1.add(new TimeSeriesDataItem....); But my SQL query gives date in String format & value in Double. I want to use TimeSeriesDataItem. Please let me know how to convert my String into TimeSeriesDataItem. Please let me know how to add my double v...

how to plot day-wise chart using Jfreechart

I have data for every 15 minutes. I want to plot a graph to display values from 'date1' to 'date2'. The plot should show every 15 minutes value. But display on X-axis should show only dates. ...

how to decrease the font size in dial charts

Hi, I am usinf jfreechart to plot the dial charts. But i want to decrease the font size. How can i do that. Thanks in advanc ...

Jfreechart selection

Is there a way to be able to click on a segment on a plot and have jfreechart tell me the x/y coordinates of that point or somehow return the corresponding data associated with that line? Does jfreechart have any packages at all for interacting with the plot? ...

How to avoid negative values with JFreeChart fixed auto range

I have a JFreeChart line plot that is updated dynamically with one data point for every iteration of my algorithm. Because the number of data points can quickly become very large, I have used the setFixedAutoRange(double) method on the domain axis. This restricts the graph to displaying the n most recent iterations (200 in my case). T...

Icon on a JFreeChart XY Plot

I have an XY plot of positions and want the newest point to be an icon. Is this possible in JFreeChart? ...

Setting JFreeChart / Cewolf X Axis Interval

I am trying to display some charts on a web app that has data for every minute. The problem is when I try to view an hours worth of data (default) you just see a bunch of hash marks. Is there a way to set the interval so that you it automatically sents 5 marks that display the date time (YYYY-MM-DD HH:MM:SS). Current: http://img255....

JFreechart XYPlot Overlapping Data Artifacts

I am trying to draw some bar graphs with a data set that contains overlapping priorities. E.g. three bars of different colors may be drawn at one point, but the one with the highest priority will be shown. This works most of the time, but I am getting some artifacts on my plot as some of the colors from lower priorities leak through oc...

JFreeChart-like in Delphi

Hi! I have worked with JFreeChart in a few Java projects. I wonder if there is something similar I can use in Delphi for Win32 or if you know about a nice free chart library for Delphi. I'm working with Delphi 2006. I know there is already TChart but it looks a bit "old". My researchs bring me to TMS Advanced Charts but it's too expensiv...

Java Graphing Libraries for Web Applicattions?

I've been asked to enhance a JSP Application with (And I quote) "Some Sexy Graphs" I did a quick search on SO and came up with this question which mentions several graphing solutions, however given that this is a Web application I was wondering if there were any good graphing libraries that can render the graphs client side using JQuery ...

How to display line graph using JFreeChart in jsp?

HI All: I am using the below to diplay the line graph. when i run the below code, i am getting the window but it is blank and not displaying the graph. Please help me and also tell me how to diplay the line graph in html page using below code. Code : import org.jfree.chart.; import org.jfree.chart.plot.PlotOrientation; imp...

JFreeChart Datetickunit question

Hi, I'm trying to plot a weekly XY plot with irregular spacing between data point. That means the first data point and second data points might not be spaced 7 days apart, although the rest of the data points will be evenly spaced. How do I plot the chart so that all the data points are labelled on the x-axis? (I've used DateTickUnit c...

ohlc chart in JFreeChart

hi, I'm currently working on a financial alerts application , and for the client interface I've decided to use JFreeChart. However as I'm new to it ,there are some important things that I can't figure about the ohlc charts : -I'd like to be able to put in a chart only a limited number of bars (let's say 300) and after this number is re...