I thought that algorithm will be next ( if I correctly understand about what conflicts you are talking ):
I have for example three point where I want to display my markers:
(2, 5), (4,5), (10,5).
So if we have the width of marker, we can check:
So I have interval (2, 2 + width) and I check with other X's of markers (4,10, etc ) and If some X's is in interval (2, 2 + width), so we have overlapping and i want to resolve this conflict in next for example way: the X value of second point [(4,5)] we set to 2 + width + 1...
Or I have some massive that contains value of Y and vector of X's that correspond to value Y:
In example above: 5 -> 2, 4, 10....
and then we need to display our markers in points: (2,5) (2+1*width, 5) (2 + 2*width, 5)
And so on for all markers...
Mb U have better solution?
Yours,
carhun
Bookmarks