Click even on pie chart using dojo - 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.

Related

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

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"

Cystoscapejs UI extensions : Events are not fired (eaten by cytoscape) in custom extension

I have written a custom UI extension by following the procedure that cystoscape.js recommends. I am using jcanvas library to draw shapes on this ui extension. Everything works great except the click events on these shapes (jcanvas library provides events to bind on the shapes drawn)are not working. Click on these shapes makes only cytoscape core click. jcanvas events are not fired because I think cytoscape eats all the events. Could someone please help me to how to listen to events on the canvas which are overlayed using ui extension?
Thanks
Prakash
Your overlay needs to be on top of the Cytoscape canvases to get events. Take a look at the existing extensions for examples, like panzoom.

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.

Add text in the center of pentaho ccc donut chart

I searched this questions with google and only got some answers for Highcharts or D3 graphs.
this demo is for Highcharts: http://jsfiddle.net/sJfuA/22/
Also, I found an example here: http://pentaho-bi-suite.blogspot.com/2014/08/dual-level-pie-chart-in-pentaho-cde.html, but I couldn't tweak the code to fit my purpose.
my use case
I create a pie chart with extension point options:
slice_innerRadiusEx: 50%
which is very similar to this demo: http://jsfiddle.net/make_dream/sugmyyto/, then I'm trying to put numbers in the center of of the pie(see previous demo, in the white area).
what I want
What I want is almost the same as this chart: http://bl.ocks.org/ckuijjer/6929969, but implement with the code snippet in the second jsfiddle demo.
I don't think that can be done via CCC configuration or extension points.
What people usually do is create a donut chart with a predefined empty space in the center, add a div on top of it and, e.g. using a text component, append whatever text you want in the center of the donut to that div.
The center text isn't really part of the donut, it's added by a separate component. Then it's a matter of crafting your CSS carefully to align the text with the center of the donut and not allow it to overflow its container.

Show/Hide dojo grid columns

I have a screen where I have a matrix to display. I am using dgrid for it.
It has functionality to show/hide columns on the fly. User can show or hide any perticular column he wants. Also there is functionality of collapsible rows for which I have used TreeGrid of dgrid.
Please let me know if there is any way to implement this functionality.
You can check the screenshot below to understand my query.
![enter image description here][1]
dGrid to be implemented which show hide column functionality
I think what you want is the ColumnHider extension, already included in the dgrid repository
inside de externsions folder.
also your mesage is kinda cryptic, so its dificult to answer