This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes cewolf XY Chart Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "cewolf XY Chart" Watch "cewolf XY Chart" New topic
Author

cewolf XY Chart

sourav dalal
Greenhorn

Joined: Nov 29, 2008
Posts: 7
I am using cewolf 1.1 prepared by ulfdittmer. Can anbody suggest how to put custom labels in X & Y. Also I want to use the Timeseries chart for Time.class. But it is giving error for Null Time argument.
The follwing code is for producing graph for 10th to 31 Dec 2008.

TimeSeries ts = new TimeSeries("Cewolf Release Schedule", Day.class);
int j=3;
Date [] dates = new Date[21] ;
DateFormat df = java.text.DateFormat.getDateInstance(DateFormat.DEFAULT);
try {
for(int i=0;i<21;i++){
int day = i+10;
String date= day+"/12/2008";
dates[0] = df.parse(date);
}

} catch (Exception ex){

}
for(int i=0;i<21;i++) {
j=j+i;
ts.add(new Day(dates[i]), j);
}
return new TimeSeriesCollection(ts);
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
Can anbody suggest how to put custom labels in X & Y.

I don't understand what you mean by this. Can you describe in detail what you're trying to do? What kind of chart, where you want to put the labels, what should go in the labels, etc. TellTheDetails

Also I want to use the Timeseries chart for Time.class. But it is giving error for Null Time argument.

Where are you using null arguments - which parameter in which method call? Does the documentation say that null arguments are OK?
sourav dalal
Greenhorn

Joined: Nov 29, 2008
Posts: 7
i want to produce a graph for last 7 days, where the data is collected for every 5 mins.
While using timeseries with day class, it gets error due to duplicate data in same date, though
I have provided in "yyyy-MM-DD HH:mm:ss" style. So, I have used XY graph. But in XY graph,
the date in X axis is replaced with array index(Since it takes double as input).Can it be replaced with
a String value? Secondly, in XY graph the max in Y axis depend on Max value of series. Can
I produce a graph in Y axis with range of 0,25,50,100 irrespective of Max value in graph data?
 
Have you checked out Aspose?
 
subject: cewolf XY Chart
 
It's not a secret anymore!