how to pass array values to dojo pie chart using javascript - dojo

Please can any one help me out how to pass array values to the dojo pie chart using javascript..
I need to update the pie chart on fly. on selection on user from gridivew..

I can help with Pie chart:
my_chart.
// let's update data
updateSeries("your series name here", your_data_here).
// finished updating, now let's show the changes
render();
Adding a series with the same name will work too:
my_chart.
// let's update data
addSeries("your series name here", your_data_here).
// finished updating, now let's show the changes
render();

Related

Apex 5 scatter marker chart dynamic series name

Is there a way to dynamically display the series name in Apex Scatter Marker chart type?
I tried using hidden page item but the chart is not rendering at all.
got it finally by modifying the generated XML:
...
..

Add a numeric chart in StrategicERP dashboard

Trying to add a new numeric chart on StrategicERP dashboard. Please guide me how to go about it
Made changes to numeric chart
can add multiple charts using multi=4
can add icons to individual chart
Go to http://www.w3schools.com/bootstrap/bootstrap_ref_comp_glyphs.asp
Choose the icon you want for e.g. "glyphicon glyphicon-briefcase"
Just copy briefcase
Now extraparams will become icon=bullhorn,briefcase,paperclip,heart-empty
Extraparams will become "multi=4&icon=bullhorn,briefcase,paperclip,heart-empty"
if you want to decrease height then it will become "multi=4&height=300&icon=bullhorn,briefcase,paperclip,heart-empty"

Table Viewer length Increases automatically under Section

I am newbie for the SWT and layouts. I have a Composite A inside that I have Section called "Table Contens" inside that i have another composite "Composite B" inside that I am using Table Viewer which uses TableColumnLayout.
All the composite and sections uses Grid layout and
GridData gridData = new GridData(GridData.FILL, GridData.FILL, true, false);
My problem is,First time the table will contains 5 rows, So the table size arranges accordingly.If i select another file it will be populated with 10 rows and comes with scrollable.
When i go to another tab and come back to this table viewer tab it refreshes the layout and the height of the viewer adjust for the 10 rows.
If I give height and width manually it is working GridData objectivesectiondata=new GridData(670,150);
But I want the table to resize based on the screen but i need to restrict the height of it.
I know i need to do something with the layout .But I dont know how to do it?
I am in need of this very much.Any Advice ?
THanks in advance
Specify the GridData heightHint value, something like:
GridData gridData = new GridData(GridData.FILL, GridData.FILL, true, false);
gridData.heightHint = 150;

updating data table when clicking on pentaho pie chart slice

Any updates for the above question( Link pie chart to data tables in Pentaho User Console ). I have a question for the same.
I have already created 1 pie chart & a data table(lists the pie chart slice details) in pentaho report designer and successfully published on server(biserver-ce 5.0.1 stable).Now, I need to make it like this: In that pie chart, it show 2 record. Let me call it as Status A & Status B. When I click a slice named status A, it should update data table of list that related to status A.
Can anyone tell me how I can do that?
Thanks in advance.
try Dashboards.fireChange("your_param", theparamsvalue); in the pie's clickAction property.theparamsvalue could be this.getValue() to store the current selection;also in the pie's properties activate clickable, selectable and so on

rdlc: Display percentage on pie chart

I'm using Visual Studio 2010 reporting to generate a report which has a table and a pie chart. Both work just fine except that for the pie chart, I'm to put the % value on each pie chart slice.
1. Is this even possible?
2. If it is, how do I do it?
Thanks
To put the % value on each pie chart slice do this (as shown here):
On the design surface, right-click on the pie and select Show Data Labels. The data labels should appear within each slice on the pie chart.
On the design surface, right-click on the labels and select Series Label Properties. The Series Label Properties dialog box appears.
Type #PERCENT for the Label data option.
Beware: If you use multiple data fields like this:
you need to move every field to first position and perform above steps as shown here otherwise you end up with only one pie chart slice showing the percentage and the others are blank...