SAPUI5 - network graph label on line between nodes - sapui5

I checked the documentation of SAPUI5 Line controller of a network graph, yet I didn't find a way to a add a label in or within a line. Is something like this even possibel in SAPUI5?
expected result image
Edit:
And I'm not meaning the focus or the hover functionality.

Related

Apache AGE - AGE Viewer does not show the options for graphs or label selection

When I open AGE Viewer there is no option for selecting the edge labels, nor the node labels and even the graphs doesn't appear anymore so I can select which I'm using. Despite that, I am able to query the graph and see what the graphs created store. But I need to do this manually. Can anyone help me get back to the normal state of AGE? Here are some images to show what I'm getting:
There is a little catch you need to select the graph name from the drop-down menu in the top-right corner, so currently no graph is selected. I have attached the screenshot.
Your dropdown:
Working state:
After this you can get the option for selecting the edge labels and the node labels.
Thumbs up if this works
Tip: There is a new version of age-viewer avaliable on Github and it provides some additional features do give it a try.
To select the graph name check the drop-down menu in the top-right corner, you can have all the graphs in your database in that drop-down.
Once you select the required graph you will have nodes and edges labels with their data if they are not empty.
Suppose I ran some edges related query
But if you have created the graph with some nodes but it is empty like you don't have data in it then:
So no relationship will be defined at the edge level so nothing will be displayed.

Echarts 5 line graph click to change colour not working

I'm trying to make a line graph change color on mouse click by using the select.lineStyle.color attribute.
I'm able to trigger a colour change for the points upon mouse click using select.itemStyle.color and I'm expecting the select.lineStyle.color attribute to change the color of the graph but , it doesn't seem to work despite the documentation saying that select should work for all series.
I even programmatically fired the "select" event (not in the sandbox) but no changes were observed in my line graph.
My code sandbox
Extract from the docs
In addition, we've added click to select to all series, an interaction that was previously only available in a few series such as pie charts and maps, allowing developers to set it to single or multiple selection mode, and to listen to the selectchanged event to get all the selected shapes for further processing. As with emphasis and blur, the selection style can also be configured in select.
Please help me. I've been working on this for a week and found no solutions here. Is there something I'm missing?
Got my answer directly via posting an issue on their Github page.
Apparently, select is only applicable for data object, not series objects(or whatever you call it). So this feature is not available.
What I did, like most people, is to listen to the mouseclick event and update the series-line.lineStyle.opacity property in options directly to blur out other lines. Set triggerLineEvent:true so that clicking any part of the line will fire the mouseclick event, instead of just the data points.

Google Charts API value misaligned

I am using the Google Chart API to display some game outcomes, however, the highest value always shows up aligned to the edge within the green bar instead of above the bar (or at least with some padding between the top and the text).
I use the following URL to generate the chart:
[http://chart.apis.google.com/chart?cht=bvs&chd=t:14.1,2.1&chp=1.57079633&chs=300x155&chl=|&chco=43A443|D53030|3B74CA|FFDC00&chf=bg,s,00000000&chbh=70&chds=0,14&chm=N*0,FFFFFF,0,-1,20,,ve::15&chp=10][1]
This generates a chart that looks like the following (I need 2 more rep on SO to post images, can someone please edit to include this image?):
![http://chart.apis.google.com/chart?cht=bvs&chd=t:14.1,2.1&chp=1.57079633&chs=300x155&chl=|&chco=43A443|D53030|3B74CA|FFDC00&chf=bg,s,00000000&chbh=70&chds=0,14&chm=N*0,FFFFFF,0,-1,20,,ve::15&chp=10][1]
[1]: http://i.stack.imgur.com/QiE2d.png
There is actually a 2 above the red bar that is aligned correctly, but since the background on SO is white, it's not showing up.
How can I make it appear ABOVE the green bar. I've torn the API a part and tried seemingly every combination with no avail.
The API reference is available here: http://code.google.com/apis/chart/interactive/docs/reference.html
The problem is with "chm".
I removed the color specifications, and now the link works perfectly.
http://chart.apis.google.com/chart?cht=bvs&chd=t:14.1,2.1&chp=1.57079633&chs=300x155&chl=|&chco=43A443|D53030|3B74CA|FFDC00&chf=bg,s,00000000&chbh=70&chds=0,14&chp=10&chm=N,,0,-1,20,,ve::15

Visual web page segmentation

I have a task where I need to segment a web page visually so that I may be able to calculate the distance between two segments of the web page at various levels of the DOM tree. In the simple way I want to be able to obtain the boxes that enclose the display of the pages on the screen. e.g. consider this image: Image to visual of DOM structure as on display
This I drew using Chrome, which provides for each DOM node the corresponding rectangle on the display of the page in the browser. How can I get these boxes in my program so that I can process the page based upon how it looks on the screen.
I was able to do so by using QtWebkeit. It provides for each level of DOM tree the geometry() method and also access to the CSS properties.

How to use customized tool bar in tiny mce?

I'm using tiny mce in one of my projects and client do not want to use the Horizontal tool bar of tiny mce. He wants a centralized custom tool bar from where user can control all the properties like text color, type of text, size, back grounds and every thing that is needed to do while designing a web page using templates. I configured the mce instance with out its default tool bar and controlled the properties from the customized tool bar. And the properties are applied to the tiny mce instance as a whole. But now, the requirement has come up that, the text editing should be in MS office style.That means, if user has placed cursor at one place and changes color, nothing will be affected, but if he starts typing from the cursor position the text should have the color which was set recently. I tried to use the external tool bar option. But, my work area and customized tool bar are at different z index levels. So, positioning the tool bar fails. If I append the tool bar to my customized tool bar, it is not click-able. So, how to invoke tiny mce's core functionality using customized tool bar?
Or, Kindly suggest, should I change editor ? Then, which one should I go for ?
EDIT
As per the suggestion, I'm writing the function save the property styles and insert the span at caret position. But I'm facing some problems and could not do it after spending whole day. I could add span at caret position by using following code.
marker = ed.selection.getBookmark();
ed.selection.moveToBookmark(marker);
tinyMCE.execCommand('mceInsertContent',false,'<span id="mytitle"></span>');
But still, I failed to type inside the new span. Also, I could not figure out how to set styles to this span.
If your aim is to have your tinymce behave like MS Office you should write an own plugin which will take care of this.
I suggest if a user has placed the cursor at one place and changes color you save this color as a setting to your tinymce instance like: ed.color = 'choosencolor';
When the user start typing now you can insert a span on the first keystroke and set the color as css class or style property to this span.