on 04-28-2020 12:40 PM - last edited on 02-04-2024 9:22 AM by postmig_api_4
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" }]
} } });
Check the method setLegendVisible for the vizframe sap.viz.ui5.controls.VizFrame.
Regards,
Sarbjeet Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.