is possible fill in area between dataset plotting xy line , valuemarker ? see picture general idea(warning: ms paint skills lacking).

as lschin, xydifferencerenderer best way this. in order have work need create 2 separate multidimensional double arrays store x , y coordinates. first array set store xy line's x , y coor's. second array constant xy line. set line x values same. if original line above constant line, y value coordinate choose of position of constant line. if original below constant y value of constant of original line. hope makes sense , helpful anyone, ive attached code below better understanding.
setconstant = position of constant line. code below placed in loop:
indline[0][i]= xyindline.getxvalue(1, i); indline[1][i] = xyindline.getyvalue(1, i); constant[0][i] = xyindline.getxvalue(1, i); constant[1][i] = math.min(setconstant, xyindline.getyvalue); once done use addseries add 2 arrays defaultxydataset
Comments
Post a Comment