Skip to Content

How to change VizFrame color for “dual_stacked_combination”

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Mar 26 at 08:52 AM

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

    'palette': [['#ff9900'], ['#0090ea', '#00ff00']]
    Add comment
    10|10000 characters needed characters exceeded