Home forums Report Bugs line graph bug?

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Sunil Urs 2 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6770

    rajah
    Participant

    Hi,

    I’m currently trying out this JS but i have a stange problem.
    I can’t seem to get a straight line.
    The graph image provided is a different starting value for all graphs but all have a increment of 1 per x-axis value, yet the line goes up and down. (I included both axis in the img to provide a more clear picture)
    line_graph
    the points for the orange line are :
    0 – 35
    1 – 36
    2 – 37
    3 – 38
    4 – 39
    5 – 40
    6 – 41
    7 – 42
    8 – 43
    9 – 44
    10 – 45
    11 – 46
    12 – 47
    Did i miss something ?

    thnx in advance.

    Gr. Rajah

    #6781

    Sunil Urs
    Keymaster

    Rajah,

    I just had a look into it. These slight variations are due to fractional values that we get while calculating data-point’s pixel position. Doesn’t look like it can be avoided.


    Sunil Urs

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.