on 2019 Apr 10 6:59 AM
Request clarification before answering.
Please refer Sample: Stacked Column.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
stacked column chart comes with boolean property
plotArea.dataLabel.showTotal
which will show the sum of each stack on top of each stacked bars.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
30 | |
10 | |
8 | |
8 | |
7 | |
7 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.