cancel
Showing results for 
Search instead for 
Did you mean: 

How to change VizFrame color for “dual_stacked_combination”

0 Kudos

I'm implementing the VizFrame component for an SAP ui5 project, so i used the "dual_stacked_combination" type.

When I try to apply the color property, it doesn't work, and the result is some stacked columns with the gradient of the same color.

//////////////// The code ////////////////////////////////////////////////

var scales = [{ 'feed': 'color', 'palette': ['#ff9900', '#0090ea', '#00ff00', '#ff0000', '#f200ff', '#ffe100', '#00ffed', '#039660','#9e9e9e','#000000']}];

oVizFrameLine2.setVizScales(scales);

////////////////////////////////////////////////

I want every part of the stacked column to have its own color

Accepted Solutions (1)

Accepted Solutions (1)

former_member196805
Contributor
0 Kudos

Please try set colors into 2 sets like below since you have 2 axes:

'palette': [['#ff9900'], ['#0090ea', '#00ff00']]
0 Kudos

Thank you, it worked 😄

Answers (0)