Hi, does anyone know how to assign a colour to a category in the new timeline chart in dashboard studio 10.4? I have events: _time, resource, duration, category_name, category_integer when I try to use enable dynamic colouring and set the data field to category_integer, this field will also be used for duration. {
"title": "timeline",
"description": "",
"inputs": {
"input_global_trp": {
"options": {
"defaultValue": "-24h@h,now",
"token": "global_time"
},
"title": "Global Time Range",
"type": "input.timerange"
}
},
"defaults": {
"dataSources": {
"ds.search": {
"options": {
"queryParameters": {
"earliest": "$global_time.earliest$",
"latest": "$global_time.latest$"
}
}
},
"ds.spl2": {
"options": {
"queryParameters": {
"earliest": "$global_time.earliest$",
"latest": "$global_time.latest$"
}
}
}
},
"visualizations": {
"global": {
"showProgressBar": true
}
}
},
"visualizations": {
"viz_e1Pyphac": {
"containerOptions": {},
"context": {
"dataColorConfig": [
{
"to": 25,
"value": "#00FF00"
},
{
"from": 25,
"to": 75,
"value": "#FFFF00"
},
{
"from": 75,
"value": "#FF0000"
}
]
},
"dataSources": {
"primary": "ds_RuvYozgr"
},
"options": {
"additionalTooltipFields": [
"health_value",
"eventcount"
],
"category": "> primary | seriesByName('health_status')",
"dataColors": "",
"duration": "> primary | seriesByName('duration')",
"legendDisplay": "bottom"
},
"showLastUpdated": false,
"showProgressBar": true,
"type": "splunk.timeline"
}
},
"dataSources": {
"ds_RuvYozgr": {
"name": "Column chart search",
"options": {
"query": "| makeresults count=77\n| streamstats count\n| eval _time=relative_time(now(),\"@d\") + (count-1)*300\n| eval resource=\"server01\"\n| eval health_status=case(\n count<=75, \"ok\",\n count<=76, \"warn\",\n true(), \"crit\"\n)\n| sort - _time\n| transaction resource health_status maxpause=5m\n| eval duration=(duration+300)*1000\n| eval _time=_time\n| eval health_value=case(\n health_status=\"ok\", 100,\n health_status=\"warn\", 50,\n health_status=\"crit\", 0\n)\n| table _time resource duration health_status eventcount health_value\n| sort _time",
"queryParameters": {
"earliest": "-24h@h",
"latest": "now",
"sampleRatio": 1
}
},
"type": "ds.search"
}
},
"layout": {
"globalInputs": [
"input_global_trp"
],
"layoutDefinitions": {
"layout_1": {
"options": {
"display": "auto",
"height": 960,
"width": 1440
},
"structure": [
{
"item": "viz_e1Pyphac",
"position": {
"h": 250,
"w": 1440,
"x": 0,
"y": 0
},
"type": "block"
}
],
"type": "absolute"
}
},
"options": {},
"tabs": {
"items": [
{
"label": "New tab",
"layoutId": "layout_1"
}
]
}
},
"applicationProperties": {
"hideEdit": false,
"hideExport": false
}
}
... View more