Skip to content

Settings and activity

1 result found

  1. 1 vote
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    An error occurred while saving the comment
    Bonnie Smithson commented  · 

    I'll try it!

    An error occurred while saving the comment
    Bonnie Smithson commented  · 

    If there was a point.index() function that would retrieve the index of the point I am looking at, I could use parallel arrays. But I think it would probably involve less over head to just be able to access the other elements on this entry. For example, instead of point.x() and point.y(), could they me aliases for point[0] and point[1], and then allow []'s to select other fields in the array while allowing series data to be defined in terms of an array name and index values. So line charts would have 1 index, scatter chants would have 2 indices, and ohlc would have 4 indices to define the series.

    An error occurred while saving the comment
    Bonnie Smithson commented  · 

    Actually I spoke too fast -- I have datetime data. So I can't use point.x as the index with which to access the parallel array. My datetime data does not occur on regular intervals. Can I extract the index somehow from a 2 dimensional array that has a datetime as the x axis value?

    An error occurred while saving the comment
    Bonnie Smithson commented  · 

    Yes! I didn't know about that feature! Can you point me to the documentation where I could have learned about it?

    Bonnie Smithson shared this idea  ·