Skip to Content

Disable Color Palette in Plot area

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.


{ 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" }]

} } });


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Apr 28 at 10:45 PM

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


    Sarbjeet Singh

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.