cancel
Showing results for 
Search instead for 
Did you mean: 

Disable Color Palette in Plot area

Santosh21n
Explorer
0 Kudos

Dear Experts,

I want to know how to disable the color pallette colors from the Viz frame report.

Pls refer the below code and screen shot

1. As colors Red, Blue and Yellow with Texts in legend are displaying based on the rules set below.

2. Legend proerties such as "More than 20 hours" and "less than 10 hours" are displaying based on the color pallette code below and they are highlighted in screen shot, i want to remove these from output.

Please help me get the code to remove these prorperties.

If dont use colorPalette:[ "#f33334", "#f29b1d", "#5899DA" ], system pics up random colors and shows in output.

oVizFrame.setVizProperties(

{ title: { visible: false, text: "Pallet Status" },

plotArea: { dataLabel: { visible: true },

colorPalette:[ "#f33334", "#f29b1d", "#5899DA" ],

visible: false,

dataPointStyleMode: "update",

dataPointStyle: {

"rules": [

{ callback: oRule1, "properties": { "color": "#f33334" }, "displayName": "Red" },

{ callback: oRule2, "properties": { "color": "#f29b1d" }, "displayName": "Yellow" },

{ callback: oRule3, "properties": { "color": "#5899DA" }, "displayName": "Blue" }]

} } });

colorpalletteissue.jpg

Santosh21n
Explorer
0 Kudos

BEST ANSWER:

use below code.

dataPointStyleMode: "override"

Accepted Solutions (0)

Answers (1)

Answers (1)

gill367
Active Contributor
0 Kudos

Check the method setLegendVisible for the vizframe sap.viz.ui5.controls.VizFrame.

Regards,

Sarbjeet Singh