Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

line graph weird shape, multiple y's for x

See screenshot provided. Red arrow and line added by me. How could this happen? This shouldn't happen because there is only one y for every x right.. When changing the line to 'straight', it looks normal. What to do about this? Is this a bug?

User uploaded file

MacBook Pro (Retina, 15-inch, Late 2013), OS X Yosemite (10.10.2)

Posted on May 21, 2015 4:56 AM

Reply
13 replies

May 21, 2015 6:22 AM in response to jojost1

i wouldnt say its a bug, you asked for curves between the points, which means...


it must develop a curve from point 0 to 1,

then a curve from point 1 to 2. now...

it must connect those two curves -with a curve-,


This could result in an off looking curve connecting two points, like you see. Where the curve from 0-1 must be decreased to come back to the curve calcuated for 1-2.

May 21, 2015 6:25 AM in response to jojost1

Jo


Does it look weird? Yes?

Is it a bug? I would say "No"


Noone in these forums works for Apple so I am guessing that they are using a similar method to draw the connection as a curve that they use for the "Draw with Pen" method of drawing a line:

User uploaded file


I drew a line using the "Draw with Pen" method on top of the points in your data (the purple line, one click for each point of your data):

User uploaded file


select the line, then double click the line. Each point will become a red outline with white center. The point you click change to have a red center. If you double click the point you will see little round controls with a point in the middle connected to the point with a line. You can draw those to control the slop of the curve at that point. The length of the line from the control to the point defines the weight of the slope. As you can see I can get a similar shape.


You should be careful about using a shape like this to interpolate data from discrete data. Ian suggested an average that will not show this phenomenon but will add a delay (or time shift) to the curve,

May 21, 2015 7:17 AM in response to jojost1

Chose for a curved connection because that was more beautiful really.. No other reason..


Maybe the only solution is to just switch to a straight connection and deal with it.


Big graph data:

€ 2.117,43

€ 2.109,78

€ 1.925,61

€ 1.925,61

€ 1.925,61

€ 1.925,61

€ 1.925,61

€ 1.960,69

€ 1.960,69

€ 1.960,69

€ 1.960,69

€ 1.960,69

€ 1.960,69

€ 1.960,69

€ 1.960,69

€ 1.960,69

€ 1.935,70

€ 1.935,70

€ 1.935,70

€ 1.935,70

€ 2.013,70

€ 2.013,70

€ 2.013,70

€ 2.005,20

€ 1.674,70

€ 1.674,70

€ 2.016,82

€ 2.010,47

€ 1.973,83

€ 1.991,00

€ 1.991,00

€ 2.005,58

€ 1.985,58

€ 1.881,32

€ 1.881,32

€ 1.831,32

€ 1.831,32

€ 1.831,32

€ 1.830,32

€ 1.830,32

€ 1.810,43

€ 1.801,23

€ 1.801,23

€ 1.792,95

€ 1.772,95

€ 1.772,95

€ 1.772,95

€ 1.772,95

€ 1.772,95

€ 1.772,95

€ 1.731,81

€ 1.809,81

€ 1.778,78

€ 1.778,78

€ 1.778,78

€ 1.776,98

€ 2.102,47

€ 2.102,47

€ 2.088,62

€ 2.105,79

€ 2.085,79

€ 1.968,54

€ 1.968,54

€ 1.968,54

€ 1.962,25

€ 1.962,25

€ 1.962,25

€ 1.962,25

€ 1.962,25

€ 1.962,25

€ 1.962,25

€ 1.962,25

€ 1.962,25

€ 1.962,25

€ 1.982,25

€ 1.982,25

€ 1.962,25

€ 1.962,25

€ 1.962,25

€ 2.040,25

€ 2.040,25

€ 2.035,25

€ 2.035,25

€ 2.015,25

€ 2.015,25

€ 2.015,25

€ 1.982,85

€ 1.965,85

€ 1.983,02

€ 1.983,02

€ 1.983,02

€ 1.865,77

€ 1.865,77

€ 1.865,77

€ 1.865,77

€ 1.865,77

€ 1.865,77

€ 1.862,27

€ 1.862,27

€ 1.862,27

€ 1.862,27

€ 1.862,27

€ 1.862,27

€ 1.877,06

€ 1.857,06

€ 1.857,06

€ 1.857,06

€ 1.851,64

€ 1.851,64

€ 1.851,64

€ 1.909,64

€ 1.905,64

€ 1.792,84

€ 1.772,84

€ 1.982,09

€ 1.982,09

€ 1.982,09

€ 1.982,09

€ 1.962,09

€ 1.976,07

€ 1.976,07

€ 1.956,07

€ 1.956,07

€ 1.956,07

€ 1.956,07

€ 1.956,07

€ 1.956,07

€ 1.956,07

€ 1.956,07

€ 1.918,56

€ 1.913,65

€ 1.913,65

€ 1.913,65

€ 1.913,65

€ 1.911,72

€ 1.907,77

€ 1.907,77

€ 1.907,77

€ 1.907,77

€ 1.907,77

€ 1.965,77

line graph weird shape, multiple y's for x

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.