In ngx-Charts, How to make tooltips always appear? Instead of appear on mouse-over and then disappear? - ngx-charts

I am trying to build the stacked bar graph using ngx-charts in angular 4.x. While displaying the data labels, I am using tooltip template and able to display, but I want those labels to show up always (instead on only on mouse-over).
How I can achieve this in ngx-charts?

You can use the boolean [showDataLabel]="showDataLabel"

Related

How to extend the Image plugin in ckeditor5 with custom elements?

We're evaluating an upgrade from ckeditor 4 to the new ckeditor 5, but I need to be able to extend the Image plugin/package with some custom elements, e.g. a text input for licensing information about the image, a button/checkbox for toggling the image to be a thumbnail or not etc.
How can I add these custom elements in the image package and write my own javascript code to handle the values from these elements?
The image toolbar is being controlled by the config.image.toolbar property. It accepts names of UI components registered in the editor.ui.components factory. In other words, it works like the main editor toolbar which is configurable via editor.toolbar and you can learn more how to create buttons here: Creating a simple plugin.

OERP (ODOO9) How to make a default legend selected in the graph

How to make a default legend selected in the graph while it open ,
in my code i have used default odoo graph view and now i am getting that all the legends are selected by default in this i need only one legend should be selected by default remaining legends should be unselected
enter image description here
You will need to customise the widget that operates on the graph view that interests you, override the widget's start function, search using jquery the element and send an onclick event to it.
The widget that you need to override is named web.GraphView on v9. For instructions on how to extend a widgets functionality refer to the documentation according to your version of odoo.

How do I make the menu collapse to mobile earlier in Bootstrap?

I'd like to be able to manipulate the breakpoint at which the menu collapses to it's mobile version with the 3 stacked horizontal bars.
You can do this by creating your own customized version of Bootstrap. The easiest way to do this is to go to http://getbootstrap.com/customize/ and to set the #grid-float-breakpoint variable.
This will keep the breakpoints for mobile, tablet & desktop at their regular values and only change the point at which the .navbar collapses.
You can customise bootstrap with your own required break points.
Go here and in the ‘Media queries breakpoints’ section and adjust the #screen-sm (mobile), #screen-md & #screen-lg parameters as required ...then generate and then replace your custom bootstrap over the existing bootstrap assets.

Dojo Tooltip with multiple labels

I am new in Dojo and trying to find some features availability in Dojo. Please let me know if we can have multiple labels in Dojo tooltip widget.
I'm not sure exactly what you mean by multiple labels. The Tooltip label is used as an innerHTML, so it can contain HTML. I've used a inside of a label. Maybe you can use a list or other tags.
Also, you can change the Tooltip's label programmatically with:
myToolTip.set("label", "My New Label");

Click even on pie chart using dojo

I have a sliced pie chart.
I need to implement Click event on each slice to go other page.
Can any body tel me how to do this kind of clicks on the pie chart using dojo?
You should use actions for that. Read this article (linked from the official docs): http://www.sitepen.com/blog/2008/05/27/dojo-charting-event-support-has-landed/
As always you can look at the code for standard actions in dojox/charting/action2d.