Hi , Is there any way where i can make the color for up= Green and down= RED, instead of default colors provided by Kibana as shown below. and also when you click on down area then Graph shows GREEN which should be RED for me.
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"description": "A simple bar chart with embedded data.",
"data": {
"values": [
{
"a": "Java",
"b": "working"
},
{
"a": "Java",
"b": "sleeping"
},
{
"a": "Java",
"b": "unknown"
}
]
},
"mark": "circle",
"encoding": {
"x": {
"field": "a",
"type": "nominal"
},
"y": {
"field": "b",
"type": "nominal"
},
"color": {
"field": "b",
"type": "nominal"
}
},
"config": {
"range": {
"category": {
"scheme": "elastic"
}
},
"mark": {
"color": "#54B399"
},
"title": {
"color": "#343741"
},
"style": {
"guide-label": {
"fill": "#69707d"
},
"guide-title": {
"fill": "#343741"
},
"group-title": {
"fill": "#343741"
},
"group-subtitle": {
"fill": "#343741"
}
},
"axis": {
"tickColor": "#eef0f3",
"domainColor": "#eef0f3",
"gridColor": "#eef0f3"
},
"background": "transparent"
},
"width": "container",
"height": "container",
"autosize": {
"type": "fit",
"contains": "padding"
}
}
It seems like you meant to attach a screenshot, but there is none. Could you edit your post?
Thank you, i added the screenshot, it's not well done but want i want to reach now is that the running mode in the legend is colored Green, unknown is Yellow and sleeping in Red
Looks like you may have posted the same question twice? Legend Color
yes i did, should i delete one of them?
This is a vega chart, please go to your chart, Inspect, Switch the View to "Vega debug" and copy/paste the contents of the "spec" tab here?
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.