Settings and activity
1 result found
-
1 vote
I’m not sure I get you, but perhaps you can solve your task by using parallel arrays? http://jsfiddle.net/highcharts/uBVzY/
An error occurred while saving the comment An error occurred while saving the comment Bonnie Smithson commentedIf 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 commentedActually 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 commentedYes! 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 ·
I'll try it!