wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
Marshal

Joined: Mar 22, 2005
Posts: 41064
    
  43
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?


Ping & DNS - my free Android networking tools app
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?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: cewolf XY Chart
 
Similar Threads
cewolf charts
passing parameters to Cewolf constructor??
cewolf and Struts
cewolf in struts
Cewolf help in tooltips