Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Graph to show Percentage using 2 data sources
Migrateduser
Hi All,
A picture tells a thousand words so attached is a screen shot that should show you what I am trying to do.
I have 2 columns Active and count(The count is the total and active is a proportion of that). I want to show a pie chat that uses the Count as the 100 percent value and the Active (Set to 0 in the screen shot as this is generated by java script) to be a percentage of this.
Getting the percentage value is easy into a table
var Total_Active = parseInt(reportContext.getGlobalVariable("gvar"));
var Total_Course = dataSetRow["COUNT(*)"];
var percentage = ( Total_Active / Total_Course) * 100;
percentage +"%"
But I just can't figure out how to get it into a PIE chart or Meter chat. I would like to be able to do this for either PIE of meter.
Any help will be appreciated.
Thanks
Andy
Find more posts tagged with
Comments
There are no comments yet