labella.js
labella.js copied to clipboard
Idea: Position labels above&below resp left&right the timeline
You see this type of timeline quite often i would say, where you have a "centered" timeline and the labels are positioned left and right of it. Now with many lables one could utilize the same algorithms currently available just for both sides*, so that even then could have more labels than fit on both sides rendered.
*= I guess the naive solution would be to just calculate the algorithms independly for both sides, but maybe later it might be good to have an algorithm that tries to optimize the space globally.
I think this is also applicable, for left/right positioning shouldn't the labels be horizontal not vertical as per this example:
Thanks for the feedback @eikaramba . You are right. For now, a naive solution is to manually split and calculate the algorithm independently for both sides.
Optimizing this for both side is actually NPC, but perhaps I can adapt the heuristics for distributing labels into multiple rows for splitting labels onto two sides. Not guarantee to be optimal, but better than hash. Will consider this idea when I work on the next version. Thanks again.
Any update on above&below labels positioning? Thanks
What is the status on this issue?