Jump to content

I have a graph consisting of 2 stacked bars(dollar value) an...


RAVI THEJA GOALLA

Recommended Posts

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!

Link to comment
Share on other sites

  • 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...