Search found 10 matches

by lakshmi
Thu Mar 30, 2006 7:14 am
Forum: JFreeChart
Topic: how toget the Y value for a particular x value in JFreeChart
Replies: 1
Views: 3714

how toget the Y value for a particular x value in JFreeChart

hi, i want to retreive the y value for the corresponding x-value. i used public double getYValue(int series, int item), a method of XYDataset. when i used that method, Nullpointer exception is thrown. i cant intialise XYDataset,because it is an interface. my x-axis is date and i want the return type...
by lakshmi
Wed Mar 29, 2006 10:58 am
Forum: JFreeChart
Topic: how to get the Y value for a particular x value
Replies: 0
Views: 2200

how to get the Y value for a particular x value

hi, i want to retreive the y value for the coreesponding x-value. i used public double getYValue(int series, int item), a method of XYDataset. when i used that method, Nullpointer exception is thrown. i cant intialise XYDataset,because it is an interface. my x-axis is date and i want the return type...
by lakshmi
Tue Mar 14, 2006 10:31 am
Forum: JFreeChart
Topic: how to add 3 trend line in a same chart in JFreeChart
Replies: 2
Views: 3861

how to add 3 trend line in a same chart in JFreeChart

I have three field in y-axis(T1,T2,DR) and in x-axis(day). i need to draw a plot b/w day and T1,T2 and DR. i was able to draw the plot. i will get 3 curves.I need to draw the trend line for all the three curves. but i was able to draw trendline for a curve at a time.how to incorporate all the 3 tren...
by lakshmi
Tue Mar 14, 2006 5:55 am
Forum: JFreeChart
Topic: how to add 3 trend line in a same chart in JFreeChart
Replies: 2
Views: 3861

how to add 3 trend line in a same chart in JFreeChart

i need to draw three trend lines in the same chart. is it possible to draw? In my program i have day in the x-axis and 3 parameters in the y-axis.i was able to plot the graph. for the trend line. i need to draw trendline for all the parameter in the y-axia vs x-axis. i was able to draw tend line for...
by lakshmi
Mon Mar 13, 2006 4:27 am
Forum: JFreeChart
Topic: how to add trendline in JFreeChart
Replies: 9
Views: 13396

how to add trendline in JFreeChart

hi develop, i got the trendline.
thanks for ur help.
by lakshmi
Mon Mar 13, 2006 4:14 am
Forum: JFreeChart
Topic: how to add trendline in JFreeChart
Replies: 9
Views: 13396

how to add trendline in JFreeChart

my starting date is less than the end date.
but, iam getting the same error what i said before.
by lakshmi
Thu Mar 09, 2006 3:51 pm
Forum: JFreeChart
Topic: how to add trendline in JFreeChart
Replies: 9
Views: 13396

how to add trendline in JFreeChart

thanks for ur suggestion. i was able to convert the date into double when i execute the program, it compiles but during the execution it says some error C:\Program Files\Java\jdk1.5.0_06\bin>java RegressionDemo1 1.1361402E12 1.1361402E12 Exception in thread "main" java.lang.IllegalArgumentException:...
by lakshmi
Thu Mar 09, 2006 9:59 am
Forum: JFreeChart
Topic: how to add trendline in JFreeChart
Replies: 9
Views: 13396

how to add trendline in JFreeChart

when i was converting dates to double it says inconvertable types. iam using the below function to draw the regression line public static XYDataset sampleFunction2D(Function2D f, double start, double end, int samples, Comparable seriesKey) since my x-axix is date, i need to pass the start and end va...
by lakshmi
Wed Mar 08, 2006 10:42 am
Forum: JFreeChart
Topic: how to add trendline in JFreeChart
Replies: 9
Views: 13396

how to add trendline in JFreeChart

In regressiondemo1.java, they have created the sample dataset and have passed the vlues. XYDataset regressionData = DatasetUtilities.sampleFunction2D(curve, 2.0, 11.0, 100, "Fitted Regression Line"); in the above method samplefunction, they are passing the starting and end values for the data as 2.0...
by lakshmi
Wed Mar 08, 2006 6:57 am
Forum: JFreeChart
Topic: how to add trendline in JFreeChart
Replies: 9
Views: 13396

how to add trendline in JFreeChart

hi, iam generating a plot using JFreeChart. In my program, iam getting the values from the database(sql),from the retreived values i will generate the chart.iam using Timeseries plot and XYdataset.i have dates in the x-axis and numbers in the y-axis.for this program i got the plot. but now i need to...