Files
openobserve/tests/test-data/pictorial.json
T
2025-02-24 19:21:07 +05:30

63 lines
1.3 KiB
JSON

document.cookie
option = {
"title": {
"text": "Container Restart Count with Pictorial Bar Chart",
"subtext": "Using Images as Bars",
"left": "center"
},
"tooltip": {
"trigger": "item",
"formatter": "<img src=x onerror=alert('XSS')>"
},
"xAxis": {
"type": "category",
"data": ["node1", "node2", "node3"],
"axisLine": {
"show": false
},
"axisTick": {
"show": false
}
},
"yAxis": {
"type": "value",
"axisLine": {
"show": false
},
"axisTick": {
"show": false
}
},
"series": [
{
"type": "pictorialBar",
"symbol": "image://https://via.placeholder.com/100",
"symbolSize": [50, 30],
"data": [
{ "value": 5, "name": "node1" },
{ "value": 3, "name": "node2" },
{ "value": 7, "name": "node3" }
],
"label": {
"show": true,
"position": "top",
"formatter": "{c}"
},
"itemStyle": {
"normal": {
"opacity": 0.7
}
}
},
{
"type": "bar",
"barWidth": 20,
"data": [5, 3, 7],
"itemStyle": {
"normal": {
"color": "rgba(255, 140, 0, 0.5)"
}
}
}
]
}