Martin Yergeau Posted March 17, 2021 Share Posted March 17, 2021 I doubt that its possible because even increasing the space you could end up with overlap. Per example 2019 YR %label may go over 2019 landmark. My suggestion is to avoid displaying the % label and leave the ability to hover over the landmark that will display the value. Having a larger height graph may create spaces between landmark (such as for 2018) but wont work if they are both almost at the same value such as for 2016. The smaller is the graph height, the closer could be the landmark Link to comment Share on other sites More sharing options...
Todd Van Valkenburg Posted March 17, 2021 Author Share Posted March 17, 2021 Hmmm. Wondering if this should be an enhancement request I am new to WebFOCUS and I have already run into this issue a couple times. It would be nice, using series, to position the text relative to the marker (e.g. left, right, top, bottom, etc) using JSON to reduce the chances of collisions. Or maybe this is a mute point since we are a few releases behind (at 8202) and that functionality is now standard in 8207+ Link to comment Share on other sites More sharing options...
Martin Yergeau Posted March 17, 2021 Share Posted March 17, 2021 Could ask for a NFR, but as I mentioned : How can it be possible to be sure 100% that the label wont ever overlap in any circumstances even when moving then left/right/top/bottom There is always a probability that the problem occurs. In your sample, you only have few years to display in a some large graph. What if, in the same space you will have to display per months or weeks (in other words, many more X-axis values) The markers will become very close to each other not only vertically, but horizontally. So from my opinion, you wont have a lot of success for your NFR due to the fact that, no matter what, the problem may persist. But good luck and congrats if it can be done. Many of us will ow you Link to comment Share on other sites More sharing options...
Todd Van Valkenburg Posted March 17, 2021 Author Share Posted March 17, 2021 The line graph has two lines. Sometimes the data labels overlap and it is hard to read the values. Example see years 2016 and 2018: image.png882277 18.8 KB I havent yet found anything in the Creating HTML5 Charts with WebFOCUS Language manual. Thanks! Todd Link to comment Share on other sites More sharing options...
Warren Hinchliffe Posted March 18, 2021 Share Posted March 18, 2021 There is a way to add some javascript to turn on click on the legend labels, and we have been able to turn on and off the lines or labels for the series. May be a way to get around the issue Link to comment Share on other sites More sharing options...
John Whitehead Posted March 18, 2021 Share Posted March 18, 2021 Afternoon all. We have run into the same issue. We tried using setRepositionDataTextCollision function but it did not work with HTML 5 charting engine label generation process. We opened a ticket with IBI and requested an NFR but the word we received back was it required a new auto positioning setting to be developed by the visualization team, and could not be implemented quickly. Link to comment Share on other sites More sharing options...
Todd Van Valkenburg Posted March 19, 2021 Author Share Posted March 19, 2021 Thanks all. I created a case with IBI yesterday requesting a feature request and I will see where it goes. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now