2020-12-08 08:13:39 -08:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
2021-06-01 09:49:19 +02:00
|
|
|
exports[`Graph Migrations legend with multiple values 1`] = `
|
2022-11-24 14:00:41 +00:00
|
|
|
{
|
2021-07-08 09:47:32 +01:00
|
|
|
"alert": undefined,
|
2022-11-24 14:00:41 +00:00
|
|
|
"fieldConfig": {
|
|
|
|
|
"defaults": {
|
|
|
|
|
"custom": {
|
2021-01-15 09:14:50 +01:00
|
|
|
"axisPlacement": "auto",
|
|
|
|
|
"drawStyle": "line",
|
|
|
|
|
"fillOpacity": 50,
|
|
|
|
|
"lineInterpolation": "stepAfter",
|
|
|
|
|
"lineWidth": 5,
|
|
|
|
|
"showPoints": "never",
|
2022-05-25 12:22:28 +02:00
|
|
|
"spanNulls": false,
|
2021-01-15 09:14:50 +01:00
|
|
|
},
|
|
|
|
|
"nullValueMode": "null",
|
|
|
|
|
"unit": "short",
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"overrides": [
|
|
|
|
|
{
|
|
|
|
|
"matcher": {
|
2021-01-15 09:14:50 +01:00
|
|
|
"id": "byName",
|
|
|
|
|
"options": "A-series",
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"properties": [
|
|
|
|
|
{
|
2021-01-15 09:14:50 +01:00
|
|
|
"id": "color",
|
2022-11-24 14:00:41 +00:00
|
|
|
"value": {
|
2021-01-15 09:14:50 +01:00
|
|
|
"fixedColor": "red",
|
|
|
|
|
"mode": "fixed",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"options": {
|
|
|
|
|
"legend": {
|
|
|
|
|
"calcs": [
|
2021-01-15 09:14:50 +01:00
|
|
|
"mean",
|
|
|
|
|
"lastNotNull",
|
|
|
|
|
"sum",
|
|
|
|
|
],
|
|
|
|
|
"displayMode": "table",
|
|
|
|
|
"placement": "bottom",
|
2022-07-27 13:39:55 -06:00
|
|
|
"showLegend": true,
|
2021-01-15 09:14:50 +01:00
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"tooltip": {
|
2022-01-10 01:32:21 -08:00
|
|
|
"mode": "multi",
|
|
|
|
|
"sort": "none",
|
2021-01-15 09:14:50 +01:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
2021-06-01 09:49:19 +02:00
|
|
|
exports[`Graph Migrations legend with single value 1`] = `
|
2022-11-24 14:00:41 +00:00
|
|
|
{
|
2021-07-08 09:47:32 +01:00
|
|
|
"alert": undefined,
|
2022-11-24 14:00:41 +00:00
|
|
|
"fieldConfig": {
|
|
|
|
|
"defaults": {
|
|
|
|
|
"custom": {
|
2021-06-01 09:49:19 +02:00
|
|
|
"drawStyle": "points",
|
|
|
|
|
"spanNulls": false,
|
|
|
|
|
},
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"overrides": [],
|
2021-06-01 09:49:19 +02:00
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"options": {
|
|
|
|
|
"legend": {
|
|
|
|
|
"calcs": [
|
2021-06-01 09:49:19 +02:00
|
|
|
"sum",
|
|
|
|
|
],
|
|
|
|
|
"displayMode": "list",
|
|
|
|
|
"placement": "bottom",
|
2022-07-27 13:39:55 -06:00
|
|
|
"showLegend": true,
|
2021-06-01 09:49:19 +02:00
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"tooltip": {
|
2021-06-01 09:49:19 +02:00
|
|
|
"mode": "single",
|
2022-01-10 01:32:21 -08:00
|
|
|
"sort": "none",
|
2021-06-01 09:49:19 +02:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`Graph Migrations legend without values 1`] = `
|
2022-11-24 14:00:41 +00:00
|
|
|
{
|
2021-07-08 09:47:32 +01:00
|
|
|
"alert": undefined,
|
2022-11-24 14:00:41 +00:00
|
|
|
"fieldConfig": {
|
|
|
|
|
"defaults": {
|
|
|
|
|
"custom": {
|
2021-06-01 09:49:19 +02:00
|
|
|
"drawStyle": "points",
|
|
|
|
|
"spanNulls": false,
|
|
|
|
|
},
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"overrides": [],
|
2021-06-01 09:49:19 +02:00
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"options": {
|
|
|
|
|
"legend": {
|
|
|
|
|
"calcs": [],
|
2021-06-01 09:49:19 +02:00
|
|
|
"displayMode": "list",
|
|
|
|
|
"placement": "bottom",
|
2022-07-27 13:39:55 -06:00
|
|
|
"showLegend": true,
|
2021-06-01 09:49:19 +02:00
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"tooltip": {
|
2021-06-01 09:49:19 +02:00
|
|
|
"mode": "single",
|
2022-01-10 01:32:21 -08:00
|
|
|
"sort": "none",
|
2021-06-01 09:49:19 +02:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
2021-06-17 11:18:36 +01:00
|
|
|
exports[`Graph Migrations preserves colors from series overrides 1`] = `
|
2022-11-24 14:00:41 +00:00
|
|
|
{
|
2021-07-08 09:47:32 +01:00
|
|
|
"alert": undefined,
|
2022-11-24 14:00:41 +00:00
|
|
|
"fieldConfig": {
|
|
|
|
|
"defaults": {
|
|
|
|
|
"custom": {
|
2021-06-17 11:18:36 +01:00
|
|
|
"axisPlacement": "hidden",
|
|
|
|
|
"drawStyle": "line",
|
|
|
|
|
"fillOpacity": 60,
|
|
|
|
|
"gradientMode": "opacity",
|
|
|
|
|
"lineInterpolation": "stepAfter",
|
|
|
|
|
"lineWidth": 1,
|
|
|
|
|
"showPoints": "never",
|
2022-05-25 12:22:28 +02:00
|
|
|
"spanNulls": false,
|
2021-06-17 11:18:36 +01:00
|
|
|
},
|
|
|
|
|
"nullValueMode": "null",
|
|
|
|
|
"unit": "short",
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"overrides": [
|
|
|
|
|
{
|
|
|
|
|
"matcher": {
|
2021-06-17 11:18:36 +01:00
|
|
|
"id": "byName",
|
|
|
|
|
"options": "A-series",
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"properties": [
|
|
|
|
|
{
|
2021-06-17 11:18:36 +01:00
|
|
|
"id": "color",
|
2022-11-24 14:00:41 +00:00
|
|
|
"value": {
|
2021-06-17 11:18:36 +01:00
|
|
|
"fixedColor": "rgba(165, 72, 170, 0.77)",
|
|
|
|
|
"mode": "fixed",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
{
|
|
|
|
|
"matcher": {
|
2022-05-30 16:27:53 +02:00
|
|
|
"id": "byName",
|
|
|
|
|
"options": "B-series",
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"properties": [
|
|
|
|
|
{
|
2022-05-30 16:27:53 +02:00
|
|
|
"id": "color",
|
2022-11-24 14:00:41 +00:00
|
|
|
"value": {
|
2022-05-30 16:27:53 +02:00
|
|
|
"fixedColor": "rgba(16, 72, 170, 0.77)",
|
|
|
|
|
"mode": "fixed",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2021-06-17 11:18:36 +01:00
|
|
|
],
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"options": {
|
|
|
|
|
"legend": {
|
|
|
|
|
"calcs": [
|
2021-06-25 09:50:08 +01:00
|
|
|
"mean",
|
|
|
|
|
"lastNotNull",
|
|
|
|
|
"max",
|
|
|
|
|
"min",
|
|
|
|
|
"sum",
|
|
|
|
|
],
|
|
|
|
|
"displayMode": "table",
|
|
|
|
|
"placement": "bottom",
|
2022-07-27 13:39:55 -06:00
|
|
|
"showLegend": true,
|
2021-06-25 09:50:08 +01:00
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"tooltip": {
|
2022-01-10 01:32:21 -08:00
|
|
|
"mode": "multi",
|
|
|
|
|
"sort": "none",
|
2021-06-25 09:50:08 +01:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`Graph Migrations preserves series overrides using a regex alias 1`] = `
|
2022-11-24 14:00:41 +00:00
|
|
|
{
|
2021-07-08 09:47:32 +01:00
|
|
|
"alert": undefined,
|
2022-11-24 14:00:41 +00:00
|
|
|
"fieldConfig": {
|
|
|
|
|
"defaults": {
|
|
|
|
|
"custom": {
|
2021-06-25 09:50:08 +01:00
|
|
|
"axisPlacement": "hidden",
|
|
|
|
|
"drawStyle": "line",
|
|
|
|
|
"fillOpacity": 60,
|
|
|
|
|
"gradientMode": "opacity",
|
|
|
|
|
"lineInterpolation": "stepAfter",
|
|
|
|
|
"lineWidth": 1,
|
|
|
|
|
"showPoints": "never",
|
2022-05-25 12:22:28 +02:00
|
|
|
"spanNulls": false,
|
2021-06-25 09:50:08 +01:00
|
|
|
},
|
|
|
|
|
"nullValueMode": "null",
|
|
|
|
|
"unit": "short",
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"overrides": [
|
|
|
|
|
{
|
|
|
|
|
"matcher": {
|
2021-06-25 09:50:08 +01:00
|
|
|
"id": "byRegexp",
|
|
|
|
|
"options": "/^A-/",
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"properties": [
|
|
|
|
|
{
|
2021-06-25 09:50:08 +01:00
|
|
|
"id": "color",
|
2022-11-24 14:00:41 +00:00
|
|
|
"value": {
|
2021-06-25 09:50:08 +01:00
|
|
|
"fixedColor": "rgba(165, 72, 170, 0.77)",
|
|
|
|
|
"mode": "fixed",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
{
|
|
|
|
|
"matcher": {
|
2022-05-30 16:27:53 +02:00
|
|
|
"id": "byRegexp",
|
|
|
|
|
"options": "/.*Status: 2[0-9]+.*/i",
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"properties": [
|
|
|
|
|
{
|
2022-05-30 16:27:53 +02:00
|
|
|
"id": "color",
|
2022-11-24 14:00:41 +00:00
|
|
|
"value": {
|
2022-05-30 16:27:53 +02:00
|
|
|
"fixedColor": "rgba(16, 72, 170, 0.77)",
|
|
|
|
|
"mode": "fixed",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2021-06-25 09:50:08 +01:00
|
|
|
],
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"options": {
|
|
|
|
|
"legend": {
|
|
|
|
|
"calcs": [
|
2021-06-17 11:18:36 +01:00
|
|
|
"mean",
|
|
|
|
|
"lastNotNull",
|
|
|
|
|
"max",
|
|
|
|
|
"min",
|
|
|
|
|
"sum",
|
|
|
|
|
],
|
|
|
|
|
"displayMode": "table",
|
|
|
|
|
"placement": "bottom",
|
2022-07-27 13:39:55 -06:00
|
|
|
"showLegend": true,
|
2021-06-17 11:18:36 +01:00
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"tooltip": {
|
2022-01-10 01:32:21 -08:00
|
|
|
"mode": "multi",
|
|
|
|
|
"sort": "none",
|
2021-06-17 11:18:36 +01:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
2020-12-08 08:13:39 -08:00
|
|
|
exports[`Graph Migrations simple bars 1`] = `
|
2022-11-24 14:00:41 +00:00
|
|
|
{
|
2021-07-08 09:47:32 +01:00
|
|
|
"alert": undefined,
|
2022-11-24 14:00:41 +00:00
|
|
|
"fieldConfig": {
|
|
|
|
|
"defaults": {
|
|
|
|
|
"custom": {
|
2020-12-08 08:13:39 -08:00
|
|
|
"drawStyle": "bars",
|
2021-01-10 17:41:20 +01:00
|
|
|
"fillOpacity": 100,
|
2020-12-08 08:13:39 -08:00
|
|
|
"showPoints": "never",
|
|
|
|
|
"spanNulls": false,
|
|
|
|
|
},
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"overrides": [],
|
2020-12-08 08:13:39 -08:00
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"options": {
|
|
|
|
|
"legend": {
|
|
|
|
|
"calcs": [],
|
2020-12-08 08:13:39 -08:00
|
|
|
"displayMode": "list",
|
|
|
|
|
"placement": "bottom",
|
2022-07-27 13:39:55 -06:00
|
|
|
"showLegend": true,
|
2020-12-08 08:13:39 -08:00
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"tooltip": {
|
2020-12-08 08:13:39 -08:00
|
|
|
"mode": "single",
|
2022-01-10 01:32:21 -08:00
|
|
|
"sort": "none",
|
2020-12-08 08:13:39 -08:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
2021-04-15 13:00:01 +02:00
|
|
|
exports[`Graph Migrations stacking groups 1`] = `
|
2022-11-24 14:00:41 +00:00
|
|
|
{
|
2021-07-08 09:47:32 +01:00
|
|
|
"alert": undefined,
|
2022-11-24 14:00:41 +00:00
|
|
|
"fieldConfig": {
|
|
|
|
|
"defaults": {
|
|
|
|
|
"custom": {
|
2021-04-15 13:00:01 +02:00
|
|
|
"axisPlacement": "auto",
|
|
|
|
|
"drawStyle": "line",
|
|
|
|
|
"fillOpacity": 50,
|
|
|
|
|
"lineInterpolation": "stepAfter",
|
|
|
|
|
"lineWidth": 5,
|
|
|
|
|
"showPoints": "never",
|
2022-05-25 12:22:28 +02:00
|
|
|
"spanNulls": false,
|
2022-11-24 14:00:41 +00:00
|
|
|
"stacking": {
|
2021-04-15 13:00:01 +02:00
|
|
|
"group": "A",
|
|
|
|
|
"mode": "normal",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
"nullValueMode": "null",
|
|
|
|
|
"unit": "short",
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"overrides": [
|
|
|
|
|
{
|
|
|
|
|
"matcher": {
|
2021-04-15 13:00:01 +02:00
|
|
|
"id": "byName",
|
|
|
|
|
"options": "A-series",
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"properties": [
|
|
|
|
|
{
|
2021-04-15 13:00:01 +02:00
|
|
|
"id": "color",
|
2022-11-24 14:00:41 +00:00
|
|
|
"value": {
|
2021-04-15 13:00:01 +02:00
|
|
|
"fixedColor": "red",
|
|
|
|
|
"mode": "fixed",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
{
|
|
|
|
|
"matcher": {
|
2021-04-15 13:00:01 +02:00
|
|
|
"id": "byName",
|
|
|
|
|
"options": "A-series",
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"properties": [
|
|
|
|
|
{
|
2021-04-15 13:00:01 +02:00
|
|
|
"id": "custom.stacking",
|
2022-11-24 14:00:41 +00:00
|
|
|
"value": {
|
2021-04-15 13:00:01 +02:00
|
|
|
"group": "A",
|
|
|
|
|
"mode": "normal",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
{
|
|
|
|
|
"matcher": {
|
2021-04-15 13:00:01 +02:00
|
|
|
"id": "byName",
|
|
|
|
|
"options": "B-series",
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"properties": [
|
|
|
|
|
{
|
2021-04-15 13:00:01 +02:00
|
|
|
"id": "custom.stacking",
|
2022-11-24 14:00:41 +00:00
|
|
|
"value": {
|
2021-04-15 13:00:01 +02:00
|
|
|
"group": "A",
|
|
|
|
|
"mode": "normal",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"options": {
|
|
|
|
|
"legend": {
|
|
|
|
|
"calcs": [
|
2021-04-15 13:00:01 +02:00
|
|
|
"mean",
|
|
|
|
|
"lastNotNull",
|
|
|
|
|
"sum",
|
|
|
|
|
],
|
|
|
|
|
"displayMode": "table",
|
|
|
|
|
"placement": "bottom",
|
2022-07-27 13:39:55 -06:00
|
|
|
"showLegend": true,
|
2021-04-15 13:00:01 +02:00
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"tooltip": {
|
2022-01-10 01:32:21 -08:00
|
|
|
"mode": "multi",
|
|
|
|
|
"sort": "none",
|
2021-04-15 13:00:01 +02:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`Graph Migrations stacking simple 1`] = `
|
2022-11-24 14:00:41 +00:00
|
|
|
{
|
2021-07-08 09:47:32 +01:00
|
|
|
"alert": undefined,
|
2022-11-24 14:00:41 +00:00
|
|
|
"fieldConfig": {
|
|
|
|
|
"defaults": {
|
|
|
|
|
"custom": {
|
2021-04-15 13:00:01 +02:00
|
|
|
"axisPlacement": "auto",
|
|
|
|
|
"drawStyle": "line",
|
|
|
|
|
"fillOpacity": 50,
|
|
|
|
|
"lineInterpolation": "stepAfter",
|
|
|
|
|
"lineWidth": 5,
|
|
|
|
|
"showPoints": "never",
|
2022-05-25 12:22:28 +02:00
|
|
|
"spanNulls": false,
|
2022-11-24 14:00:41 +00:00
|
|
|
"stacking": {
|
2021-04-15 13:00:01 +02:00
|
|
|
"group": "A",
|
|
|
|
|
"mode": "normal",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
"nullValueMode": "null",
|
|
|
|
|
"unit": "short",
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"overrides": [
|
|
|
|
|
{
|
|
|
|
|
"matcher": {
|
2021-04-15 13:00:01 +02:00
|
|
|
"id": "byName",
|
|
|
|
|
"options": "A-series",
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"properties": [
|
|
|
|
|
{
|
2021-04-15 13:00:01 +02:00
|
|
|
"id": "color",
|
2022-11-24 14:00:41 +00:00
|
|
|
"value": {
|
2021-04-15 13:00:01 +02:00
|
|
|
"fixedColor": "red",
|
|
|
|
|
"mode": "fixed",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"options": {
|
|
|
|
|
"legend": {
|
|
|
|
|
"calcs": [
|
2021-04-15 13:00:01 +02:00
|
|
|
"mean",
|
|
|
|
|
"lastNotNull",
|
|
|
|
|
"sum",
|
|
|
|
|
],
|
|
|
|
|
"displayMode": "table",
|
|
|
|
|
"placement": "bottom",
|
2022-07-27 13:39:55 -06:00
|
|
|
"showLegend": true,
|
2021-04-15 13:00:01 +02:00
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"tooltip": {
|
2022-01-10 01:32:21 -08:00
|
|
|
"mode": "multi",
|
|
|
|
|
"sort": "none",
|
2021-04-15 13:00:01 +02:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
2020-12-08 08:13:39 -08:00
|
|
|
exports[`Graph Migrations stairscase 1`] = `
|
2022-11-24 14:00:41 +00:00
|
|
|
{
|
2021-07-08 09:47:32 +01:00
|
|
|
"alert": undefined,
|
2022-11-24 14:00:41 +00:00
|
|
|
"fieldConfig": {
|
|
|
|
|
"defaults": {
|
|
|
|
|
"custom": {
|
2020-12-08 08:13:39 -08:00
|
|
|
"axisPlacement": "hidden",
|
|
|
|
|
"drawStyle": "line",
|
2020-12-16 11:17:56 -08:00
|
|
|
"fillOpacity": 60,
|
2021-01-18 19:48:45 +01:00
|
|
|
"gradientMode": "opacity",
|
2020-12-08 08:13:39 -08:00
|
|
|
"lineInterpolation": "stepAfter",
|
2020-12-08 12:50:18 -08:00
|
|
|
"lineWidth": 1,
|
2020-12-08 08:13:39 -08:00
|
|
|
"showPoints": "never",
|
2022-05-25 12:22:28 +02:00
|
|
|
"spanNulls": false,
|
2020-12-08 08:13:39 -08:00
|
|
|
},
|
|
|
|
|
"displayName": "DISPLAY NAME",
|
|
|
|
|
"nullValueMode": "null",
|
|
|
|
|
"unit": "short",
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"overrides": [],
|
2020-12-08 08:13:39 -08:00
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"options": {
|
|
|
|
|
"legend": {
|
|
|
|
|
"calcs": [
|
2021-01-15 09:14:50 +01:00
|
|
|
"mean",
|
|
|
|
|
"lastNotNull",
|
|
|
|
|
"max",
|
|
|
|
|
"min",
|
|
|
|
|
"sum",
|
|
|
|
|
],
|
|
|
|
|
"displayMode": "table",
|
2020-12-08 08:13:39 -08:00
|
|
|
"placement": "bottom",
|
2022-07-27 13:39:55 -06:00
|
|
|
"showLegend": true,
|
2020-12-08 08:13:39 -08:00
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"tooltip": {
|
2022-01-10 01:32:21 -08:00
|
|
|
"mode": "multi",
|
|
|
|
|
"sort": "none",
|
2020-12-08 08:13:39 -08:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
2020-12-08 12:50:18 -08:00
|
|
|
exports[`Graph Migrations stepped line 1`] = `
|
2022-11-24 14:00:41 +00:00
|
|
|
{
|
2021-07-08 09:47:32 +01:00
|
|
|
"alert": undefined,
|
2022-11-24 14:00:41 +00:00
|
|
|
"fieldConfig": {
|
|
|
|
|
"defaults": {
|
|
|
|
|
"custom": {
|
2020-12-08 12:50:18 -08:00
|
|
|
"axisPlacement": "auto",
|
|
|
|
|
"drawStyle": "line",
|
2020-12-14 11:34:12 +01:00
|
|
|
"fillOpacity": 50,
|
2020-12-08 12:50:18 -08:00
|
|
|
"lineInterpolation": "stepAfter",
|
|
|
|
|
"lineWidth": 5,
|
|
|
|
|
"showPoints": "never",
|
2022-05-25 12:22:28 +02:00
|
|
|
"spanNulls": false,
|
2020-12-08 12:50:18 -08:00
|
|
|
},
|
|
|
|
|
"nullValueMode": "null",
|
|
|
|
|
"unit": "short",
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"overrides": [
|
|
|
|
|
{
|
|
|
|
|
"matcher": {
|
2020-12-08 12:50:18 -08:00
|
|
|
"id": "byName",
|
|
|
|
|
"options": "A-series",
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"properties": [
|
|
|
|
|
{
|
2020-12-08 12:50:18 -08:00
|
|
|
"id": "color",
|
2022-11-24 14:00:41 +00:00
|
|
|
"value": {
|
2020-12-08 12:50:18 -08:00
|
|
|
"fixedColor": "red",
|
|
|
|
|
"mode": "fixed",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"options": {
|
|
|
|
|
"legend": {
|
|
|
|
|
"calcs": [],
|
2020-12-08 12:50:18 -08:00
|
|
|
"displayMode": "list",
|
|
|
|
|
"placement": "bottom",
|
2022-07-27 13:39:55 -06:00
|
|
|
"showLegend": true,
|
2020-12-08 12:50:18 -08:00
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"tooltip": {
|
2022-01-10 01:32:21 -08:00
|
|
|
"mode": "multi",
|
|
|
|
|
"sort": "none",
|
2020-12-08 12:50:18 -08:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
2022-03-15 05:29:15 -07:00
|
|
|
exports[`Graph Migrations transforms should preserve "constant" transform 1`] = `
|
2022-11-24 14:00:41 +00:00
|
|
|
{
|
|
|
|
|
"defaults": {
|
|
|
|
|
"custom": {
|
2022-03-15 05:29:15 -07:00
|
|
|
"drawStyle": "points",
|
|
|
|
|
"spanNulls": false,
|
|
|
|
|
},
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"overrides": [
|
|
|
|
|
{
|
|
|
|
|
"matcher": {
|
2022-03-15 05:29:15 -07:00
|
|
|
"id": "byName",
|
|
|
|
|
"options": "out",
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"properties": [
|
|
|
|
|
{
|
2022-03-15 05:29:15 -07:00
|
|
|
"id": "custom.transform",
|
|
|
|
|
"value": "constant",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`Graph Migrations transforms should preserve "negative-Y" transform 1`] = `
|
2022-11-24 14:00:41 +00:00
|
|
|
{
|
|
|
|
|
"defaults": {
|
|
|
|
|
"custom": {
|
2022-03-15 05:29:15 -07:00
|
|
|
"drawStyle": "points",
|
|
|
|
|
"spanNulls": false,
|
|
|
|
|
},
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"overrides": [
|
|
|
|
|
{
|
|
|
|
|
"matcher": {
|
2022-03-15 05:29:15 -07:00
|
|
|
"id": "byName",
|
|
|
|
|
"options": "out",
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"properties": [
|
|
|
|
|
{
|
2022-03-15 05:29:15 -07:00
|
|
|
"id": "custom.transform",
|
|
|
|
|
"value": "negative-Y",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
2020-12-08 08:13:39 -08:00
|
|
|
exports[`Graph Migrations twoYAxis 1`] = `
|
2022-11-24 14:00:41 +00:00
|
|
|
{
|
2021-07-08 09:47:32 +01:00
|
|
|
"alert": undefined,
|
2022-11-24 14:00:41 +00:00
|
|
|
"fieldConfig": {
|
|
|
|
|
"defaults": {
|
|
|
|
|
"custom": {
|
2020-12-08 08:13:39 -08:00
|
|
|
"axisLabel": "Y111",
|
|
|
|
|
"axisPlacement": "auto",
|
|
|
|
|
"drawStyle": "line",
|
2020-12-14 11:34:12 +01:00
|
|
|
"fillOpacity": 10,
|
2022-11-24 14:00:41 +00:00
|
|
|
"lineStyle": {
|
|
|
|
|
"dash": [
|
2021-01-07 09:59:21 -08:00
|
|
|
10,
|
|
|
|
|
10,
|
|
|
|
|
],
|
|
|
|
|
"fill": "dash",
|
|
|
|
|
},
|
2020-12-08 12:50:18 -08:00
|
|
|
"lineWidth": 1,
|
2022-11-24 14:00:41 +00:00
|
|
|
"scaleDistribution": {
|
2021-08-11 00:23:12 -07:00
|
|
|
"log": 10,
|
|
|
|
|
"type": "log",
|
|
|
|
|
},
|
2020-12-08 08:13:39 -08:00
|
|
|
"showPoints": "never",
|
2022-05-25 12:22:28 +02:00
|
|
|
"spanNulls": false,
|
2020-12-08 08:13:39 -08:00
|
|
|
},
|
|
|
|
|
"decimals": 3,
|
|
|
|
|
"max": 1000,
|
|
|
|
|
"min": 0,
|
|
|
|
|
"nullValueMode": "null",
|
|
|
|
|
"unit": "areaMI2",
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"overrides": [
|
|
|
|
|
{
|
|
|
|
|
"matcher": {
|
2020-12-08 08:13:39 -08:00
|
|
|
"id": "byName",
|
|
|
|
|
"options": "B-series",
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"properties": [
|
|
|
|
|
{
|
2020-12-08 08:13:39 -08:00
|
|
|
"id": "unit",
|
|
|
|
|
"value": "degree",
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
{
|
2020-12-08 08:13:39 -08:00
|
|
|
"id": "decimals",
|
|
|
|
|
"value": 2,
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
{
|
2020-12-08 08:13:39 -08:00
|
|
|
"id": "min",
|
|
|
|
|
"value": -10,
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
{
|
2020-12-08 08:13:39 -08:00
|
|
|
"id": "max",
|
|
|
|
|
"value": 25,
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
{
|
2020-12-08 08:13:39 -08:00
|
|
|
"id": "custom.axisLabel",
|
|
|
|
|
"value": "Y222",
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
{
|
2021-01-07 09:59:21 -08:00
|
|
|
"id": "custom.lineStyle",
|
2022-11-24 14:00:41 +00:00
|
|
|
"value": {
|
|
|
|
|
"dash": [
|
2021-01-07 09:59:21 -08:00
|
|
|
5,
|
|
|
|
|
8,
|
|
|
|
|
],
|
|
|
|
|
"fill": "dash",
|
|
|
|
|
},
|
|
|
|
|
},
|
2020-12-08 08:13:39 -08:00
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"options": {
|
|
|
|
|
"legend": {
|
|
|
|
|
"calcs": [],
|
2020-12-08 08:13:39 -08:00
|
|
|
"displayMode": "list",
|
|
|
|
|
"placement": "bottom",
|
2022-07-27 13:39:55 -06:00
|
|
|
"showLegend": true,
|
2020-12-08 08:13:39 -08:00
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"tooltip": {
|
2022-01-10 01:32:21 -08:00
|
|
|
"mode": "multi",
|
|
|
|
|
"sort": "none",
|
2020-12-08 08:13:39 -08:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
`;
|
2022-01-20 00:38:32 -08:00
|
|
|
|
|
|
|
|
exports[`Graph Migrations x axis should hide x axis 1`] = `
|
2022-11-24 14:00:41 +00:00
|
|
|
{
|
|
|
|
|
"defaults": {
|
|
|
|
|
"custom": {
|
2022-01-20 00:38:32 -08:00
|
|
|
"drawStyle": "points",
|
|
|
|
|
"spanNulls": false,
|
|
|
|
|
},
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"overrides": [
|
|
|
|
|
{
|
|
|
|
|
"matcher": {
|
2022-01-20 00:38:32 -08:00
|
|
|
"id": "byType",
|
|
|
|
|
"options": "time",
|
|
|
|
|
},
|
2022-11-24 14:00:41 +00:00
|
|
|
"properties": [
|
|
|
|
|
{
|
2022-01-20 00:38:32 -08:00
|
|
|
"id": "custom.axisPlacement",
|
|
|
|
|
"value": "hidden",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
`;
|