link-stack/apps/leafcutter/config/visualizations/lineStacked.json
2023-02-13 13:46:56 +00:00

105 lines
2.3 KiB
JSON

{
"title": "LineStacked",
"type": "line",
"aggs": [
{
"id": "1",
"enabled": true,
"type": "count",
"params": {},
"schema": "metric"
},
{
"id": "2",
"enabled": true,
"type": "terms",
"params": {
"field": "technology.keyword",
"orderBy": "1",
"order": "desc",
"size": 5,
"otherBucket": false,
"otherBucketLabel": "Other",
"missingBucket": false,
"missingBucketLabel": "Missing"
},
"schema": "segment"
}
],
"params": {
"type": "line",
"grid": { "categoryLines": false },
"categoryAxes": [
{
"id": "CategoryAxis-1",
"type": "category",
"position": "bottom",
"show": true,
"style": {},
"scale": { "type": "linear" },
"labels": { "show": true, "filter": true, "truncate": 100 },
"title": {}
}
],
"valueAxes": [
{
"id": "ValueAxis-1",
"name": "LeftAxis-1",
"type": "value",
"position": "left",
"show": true,
"style": {},
"scale": { "type": "linear", "mode": "normal" },
"labels": {
"show": true,
"rotate": 0,
"filter": false,
"truncate": 100
},
"title": { "text": "Count" }
},
{
"id": "ValueAxis-2",
"name": "RightAxis-1",
"type": "value",
"position": "right",
"show": true,
"style": {},
"scale": { "type": "linear", "mode": "normal" },
"labels": {
"show": true,
"rotate": 0,
"filter": false,
"truncate": 100
},
"title": { "text": "Count" }
}
],
"seriesParams": [
{
"show": true,
"type": "line",
"mode": "stacked",
"data": { "label": "Count", "id": "1" },
"valueAxis": "ValueAxis-2",
"drawLinesBetweenPoints": true,
"lineWidth": 2,
"interpolate": "step-after",
"showCircles": true
}
],
"addTooltip": true,
"addLegend": true,
"legendPosition": "right",
"times": [],
"addTimeMarker": false,
"labels": {},
"thresholdLine": {
"show": false,
"value": 10,
"width": 1,
"style": "full",
"color": "#E7664C"
}
}
}