This is a useful tip from Leo on Pentaho Forum,
For your Bar Chart set below properties.
Stacked =True
valuesVisible= True
valueMask = {value}{(value.percent)}
To popup the value of a stack or percentage of a stack you need to write below code in clickAction and make clickable is true.
Sample output Tested :
Query output should be like this for a stacked bar chart :
Refer below link for more information :
http://forums.pentaho.com/showthread.php?170389-Show-values-as-percentage-on-stacked-bar-chart
http://jsfiddle.net/duarteleao/e2Qfd/
For your Bar Chart set below properties.
Stacked =True
valuesVisible= True
valueMask = {value}{(value.percent)}
To popup the value of a stack or percentage of a stack you need to write below code in clickAction and make clickable is true.
function(scene) {
var pctVar = scene.vars.value.percent;
alert(pctVar.label);
}
Sample output Tested :
Query output should be like this for a stacked bar chart :
Refer below link for more information :
http://forums.pentaho.com/showthread.php?170389-Show-values-as-percentage-on-stacked-bar-chart
http://jsfiddle.net/duarteleao/e2Qfd/
No comments:
Post a Comment