I want to show HTMLLabelItems in the corners of my scatter-chart.
I’m trying to position each HTMLLabelItem with StylePosition.RELATIVE, but the api has only methods for top and left.
For the upper left corner, this works:
HTMLLabelItem htmlItem = new HTMLLabelItem("NorthEast");
Style style = new Style();
style.setPosition(StylePosition.RELATIVE);
style.setLeft("10");
style.setTop("10");
htmlItem.setStyle(style);
How can I position the items in the upper right / lower right / lower left corner ?
I tried to use percentage-based values, but this doesn’t work.
Any suggestions?