Jump to content

Recommended Posts

Posted

I have a graph consisting of 2 stacked bars(dollar value) and 1 line(percentage) on top of the stacked bar. I am using this code to display the value on top of stacked bars and separate percentage for a line. But it is displaying line in $ value which is supposed to be percentage.

For line to display value in percentage:

series: 1,

marker: {

visible:true,

shape:rectangle,

size: 8,

fillEffect:100%,

},

},

{

dataLabels: {

visible: true,

content: auto,

font: bold 7.5pt Sans-Serif,

numberFormat:

function(n){

num = n.toFixed(1);

return num + %;

}

For displaying Stacked totals:

blaProperties: {

seriesLayout: stacked,

stackTotalLabel: {

visible:true,

position:top,

font: 8pt TREBUCHET MS, bold,

numberFormat:

function(n){

num = n.toFixed(1);

return $ + num ;

}

},

},

I will be needing output where we get stacked total for bars and line as percentage. Thanks for the help!

Posted

Ravi

Welcome to myibi Usually you will get answers to your questions but in this case you must have stumped everyone. If this is still an issue for you please open a case with techsupport. If you have solved it yourself please post your solution so others can benefit from it. Thanks!

  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...