Converting series to array.

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
manjusha0110
Posts: 10
Joined: Tue May 02, 2017 7:24 am
antibot: No, of course not.

Converting series to array.

Post by manjusha0110 » Mon Jul 24, 2017 1:29 pm

Hi,

I have a requirement wherein, I have to add/substract a calculated number from each of the dataitems ( x and y) in XYSeries. I am currently using series.toarray() and storing all the values in the array and then adding/substracting the values to each element. But I am making some mistake in the loop, so i am not getting the desired output.

Is there a better way to do it? Please help as i am new to java and jfreechart.

Thanks
Manjusha

paradoxoff
Posts: 1634
Joined: Sat Feb 17, 2007 1:51 pm

Re: Converting series to array.

Post by paradoxoff » Mon Jul 24, 2017 5:25 pm

manjusha0110 wrote:But I am making some mistake in the loop, so i am not getting the desired output.
Show us the loop, and we might be able to correct the error.

Locked