Welcome to Knowage Q&A, where you can ask questions and receive answers from other members of the community.
0 votes
1 view

Hi All,

1. How can i set the legend of bar chart in order with the bar line?
2. Can the bar line not showing some gap when the series was stacking?   
Appreciate your help. Please refer to below:

Thank you.
Regards,
Herman.

Environment Knowage CE 6.1.1, Windows Server2012 R2 , MySQL DB version 5.6, Google Chrome & Mozilla Firefox.
in Cockpit, Dashboard and Console by (1.1k points)

2 Answers

0 votes

Hi Herman,

For your first question you should open your knowagecockpitengine war and change file column_chart.vm on this path:

knowagecockpitengine\WEB-INF\classes\chart\templates\highcharts414

You need to add this (blue) at 581 line.  

#if ($chart.seriesStacking=="true")

, reversed: true

#end 

I am not sure that I understand your second question. You mean on space  between ~4200 to 4500?

Bye,

Radmila

by (3.3k points)

Hi Radmilla,

Thank you for your help.
It's work perfectly.

Second question is want to modify as full stacked bar chart whatever the value is same or not. 
Something like this:

Appreciate your help.
Thank you.
Regards,
Herman.

0 votes

For second question, in same file you need to change 

stacking: "normal",  

to

stacking: "percent", 

in bar: {......

Bye, 

Radmila

by (3.3k points)

Hi Radmila,

Thank you so much. It's working perfectly.
Another question, how to change the axis normal to percent for regular bar that not in stacking mode? is it possible? Appreciate your help.

Thank you.
Regards,
Herman.
 

...