You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any automatic placement strategies built into G2 to keep annotations from overlapping with marks / other annotations? I'm evaluating whether or not we will have to write something ourselves to be able to keep the automatically annotated graphs clean.
E.g. if I have four annotations, and I say that they all point at one particular point, is there any sort of placement / automatic adjustment feature built into G2 that would allow the annotations to be positioned without overlapping?
If not is this something that would be considered for the future / is there any placement strategies or algorithms you would recommend to implement this myself?
The text was updated successfully, but these errors were encountered:
Can you give me a concrete example? I'm not sure I'm understanding it correctly. A chart that is currently plotted and the result that you expected will be very helpful.
@pearmini Yes - so this is what happens now if you plot multiple datamarker annotations for the same point:
This is what they could look like if G2 had the ability to place them automatically:
Basically, I was wondering if there was any functionality for G2 to prevent overlapping of annotations without me having to manually use offsets and positioning. This would make annotations dynamic with the graph, so that you can initialize a large number of annotations, and they reposition themselves so that they don't overlap with other graph elements.
My use case for this would be to dynamically generate graphs with multiple custom HTML annotations. It will look something like this when I'm done:
This feature definitely would be considered for the future in v5. Actually, it already has implemented some placement strategies for the label specified by label.transform. You can try this example for details. After releasing the stable version, the annotation will also support such transform to avoid overlap.
Is there any automatic placement strategies built into G2 to keep annotations from overlapping with marks / other annotations? I'm evaluating whether or not we will have to write something ourselves to be able to keep the automatically annotated graphs clean.
E.g. if I have four annotations, and I say that they all point at one particular point, is there any sort of placement / automatic adjustment feature built into G2 that would allow the annotations to be positioned without overlapping?
If not is this something that would be considered for the future / is there any placement strategies or algorithms you would recommend to implement this myself?
The text was updated successfully, but these errors were encountered: