cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to create the following kind of chart?

0 Kudos

Hi All,

I want to create the chart like the below image. Can you please give your valuable suggestion.

Thank you.

Accepted Solutions (0)

Answers (4)

Answers (4)

saurabh_vakil
Active Contributor

Please refer Sample: Stacked Column.

0 Kudos

Hi saurabh vakil,

Thank for your suggestions. I need to show the sum value label (B,A,B) in the stacked column. Can you please tell me your valuable suggestion.

karthikarjun
Active Contributor
0 Kudos

Hi, I agree with chapman wong. At the same time you can check with bar chart which gives the same look and feel as what you are expecting to achieve.

I have created a sample for you, try this ---> https://plnkr.co/edit/fRJgYt?p=preview

Regards,

Karthik Arjun

former_member196805
Contributor
0 Kudos

Hello,

Sorry for the confusion as I think I was oversighted.

For stacked column chart, y-axis must be a numeric scale so it cannot shows alphabat. You could try:

1. disable the visibility of y-axis by setting valueAxis.visible = false

2. data label position:

2.1 If you will have more than one measure to be visible on every dimension, the data labels will always be positioned inside the bar.

2.2, if it is always one measure, you could use column chart instead of stacked column

3. you could try customize the data labels by writting the logic in

plotArea:{dataLabel:{renderer: function(e){/*Your logic here*/}}}

variable "e" here consist of every data label information. You could design your IF condition and set the visible text of data label to either A, B, or C

BR,
Chapman

former_member196805
Contributor
0 Kudos

stacked column chart comes with boolean property

plotArea.dataLabel.showTotal 

which will show the sum of each stack on top of each stacked bars.

0 Kudos

Hi Chapman,

I need to show the Alpha value in Y axis and X axis should be years. But the stacked column chart is not taking alpha value (A, B,C) in the y axis. Is there any option to show the alpha characters in the chart. Please refer the below screenshot of chart.