Search found 50 matches

by tedbyers
Mon Dec 03, 2007 4:56 pm
Forum: JFreeChart
Topic: Is it possible to have multiple background colours ...
Replies: 2
Views: 3119

Thanks David. I'll give that a try.

Ted
by tedbyers
Sat Dec 01, 2007 2:42 am
Forum: JFreeChart
Topic: Is it possible to have multiple background colours ...
Replies: 2
Views: 3119

Is it possible to have multiple background colours ...

Please take a look at the chart on the following page: http://research.stlouisfed.org/fred2/series/DTB3?cid=116 They have two background colours, white and grey, with grey being used for those time periods during which there was a recession. SO, like the chart shown at the above URL, I need to plot,...
by tedbyers
Thu Nov 15, 2007 5:43 pm
Forum: JFreeChart
Topic: Plot a dataset as a distibution graph
Replies: 5
Views: 7383

Actually, we are not confused. We know, and understand precisely what you asked for. David showed you how to obtain the display you want using capability included in jFreeChart, and I showed you how to do it with a few lines of code (fewer actually than using jFreeChart to do it). First, you need to...
by tedbyers
Wed Nov 14, 2007 8:44 pm
Forum: JFreeChart
Topic: Is it possible to synchronize the size of two or more charts
Replies: 3
Views: 3790

I don't know if a gantt chart can be used as a sub plot in a combined domain plot, but you might look at combinedDomainCategoryPlot or combinedDomainXYPlot. I don't see why it wouldn't work because you can create a Gantt chart by creating a category plot and give it the gantt renderer. The combinedD...
by tedbyers
Wed Nov 14, 2007 5:55 pm
Forum: JFreeChart
Topic: Plot a dataset as a distibution graph
Replies: 5
Views: 7383

llp00na You don't need any special functionality in jFreeChart to do this. Just do it before, or while, you create the dataset to be plotted. It is very simple. What you've described is a ten year resolution, but the resolution could be anything. Just create an array spanning the range of values you...
by tedbyers
Wed Nov 14, 2007 4:13 am
Forum: JFreeChart
Topic: request: CombinedDomainAndRange*Plot
Replies: 19
Views: 18242

csbabu, If you have the demo, there are four demo charts showing exactly what you need. If you don't have the demo source code, then, if you can plot multiple series on a plot, just change the one that needs to be displayed as a bar chart to use the appropriate renderer, and possibly look at renderi...
by tedbyers
Wed Nov 14, 2007 4:00 am
Forum: JFreeChart
Topic: How do I access the Legend in a plot in a combined plot?
Replies: 2
Views: 2939

Never mind. I found it. It turns out that for the common domain combined charts, you have to create a LegendTitle, passing the plot to be used to construct the chart as the argument for the constructor, and then add that Legend Title to the chart. The Legend Title provides all the control desired fo...
by tedbyers
Tue Nov 13, 2007 10:55 pm
Forum: JFreeChart
Topic: ChartCreator 1.2.0
Replies: 0
Views: 2056

ChartCreator 1.2.0

OK, I downloaded it, and the demo, but there is no documentation. I can make sense of some of what I am seeing, but I need a little help. For example, what I received was a collection of class files, plus the source. But I do not see a jar file that I could add, say, to a NetBeans web application pr...
by tedbyers
Mon Nov 12, 2007 10:49 pm
Forum: JFreeChart
Topic: How do I access the Legend in a plot in a combined plot?
Replies: 2
Views: 2939

How do I access the Legend in a plot in a combined plot?

With simple charts, I control the position of the Legend using something like the following: if (imax > 2) theChart.getLegend().setPosition(org.jfree.ui.RectangleEdge.BOTTOM); imax, here, is just the number of series in the plot. However, now I need to use a org.jfree.chart.plot.CombinedDomainXYPlot...
by tedbyers
Sun Nov 04, 2007 5:10 am
Forum: JFreeChart
Topic: Finance.yahoo.com beta charts
Replies: 1
Views: 2334

Finance.yahoo.com beta charts

Please visit Finance.yahoo.com and take a look at their beta chart web-app. Their new charts are impressive, and from what I have seen in jFreeChart, it shouldn't take too much to be able to create such charts using it. But I do not yet understand how crosshairs are implemented, and I am not familia...
by tedbyers
Fri Nov 02, 2007 4:10 am
Forum: JFreeChart
Topic: I don't get any errors or exceptions, but ...
Replies: 3
Views: 3968

Thanks Taqua Yes, I know about making variables data members of a class when needing to access them in more than one function call. And yes, the chartpanel is a field, but that is why it is a mystery that, on second entry into the function, it is null. I can not find anywhere in the code where it is...
by tedbyers
Thu Nov 01, 2007 12:13 am
Forum: JFreeChart
Topic: I don't get any errors or exceptions, but ...
Replies: 3
Views: 3968

I know it is normally bad form to answer your own question, but this time I found the cause after taking a coffee break. The problem was related to the default size of a panel. Just adding "oldCompositeChartPanel.setSize(Price_Holdings_Chart_Pane.getSize());" right after oldCompositeChartPanel is gi...
by tedbyers
Wed Oct 31, 2007 9:41 pm
Forum: JFreeChart
Topic: I don't get any errors or exceptions, but ...
Replies: 3
Views: 3968

I don't get any errors or exceptions, but ...

I can step through my code to produce a combined domain chart, and no errors crop up, the data seems reasonable (I set up watches for the values: between 150 and 250 for the first series and between 50 and 150 for the second - the second is just random numbers for now, but will eventually be pulled ...
by tedbyers
Wed Oct 31, 2007 6:33 pm
Forum: JFreeChart
Topic: Almost there - problem with default colour selection and dis
Replies: 2
Views: 2908

Regarding the Chartcolor class, the simplest and obvious option is a simple getter and setter function pair for a ChartColor data member in the Chart (I assume that's where there's an instance of your default color class), and then have that take an instance of any class derived from your chart colo...
by tedbyers
Wed Oct 31, 2007 5:37 pm
Forum: JFreeChart
Topic: Almost there - problem with default colour selection and dis
Replies: 2
Views: 2908

Almost there - problem with default colour selection and dis

OK, I have done almost everything I need to do with these charts. However, I find some of the colours selected by default for different series to be quite hard to see. It may be a function of age, but i find yellow displayed on white extremely hard to see. Is it possible to easily change the colours...