The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/public/app/plugins/panel/barchart/__snapshots__/utils.test.ts.snap

1057 lines
22 KiB

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`BarChart utils preparePlotConfigBuilder orientation 1`] = `
Object {
"axes": Array [
Object {
"font": "12px \\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
"gap": 15,
"grid": Object {
"show": false,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"labelGap": 0,
"scale": "x",
"show": true,
"side": 3,
"size": [Function],
"space": [Function],
"splits": [Function],
"stroke": "rgb(204, 204, 220)",
"ticks": Object {
"show": false,
"size": 4,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"timeZone": undefined,
"values": [Function],
},
Object {
"font": "12px \\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
"gap": 5,
"grid": Object {
"show": true,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"labelGap": 0,
"scale": "m/s",
"show": true,
"side": 2,
"size": [Function],
"space": [Function],
"splits": undefined,
"stroke": "rgb(204, 204, 220)",
"ticks": Object {
"show": true,
"size": 4,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"timeZone": undefined,
"values": [Function],
},
],
"cursor": Object {
"drag": Object {
"setScale": false,
},
"focus": Object {
"prox": 30,
},
"points": Object {
"fill": [Function],
"show": false,
"size": [Function],
"stroke": [Function],
"width": [Function],
},
"x": false,
"y": false,
},
"hooks": Object {
"draw": Array [
[Function],
],
"drawClear": Array [
[Function],
],
"init": Array [
[Function],
],
},
"mode": 1,
"padding": undefined,
"scales": Object {
"m/s": Object {
"auto": true,
"dir": 1,
"distr": 1,
"log": undefined,
"ori": 0,
"range": [Function],
"time": undefined,
},
"x": Object {
"auto": true,
"dir": -1,
"distr": 2,
"log": undefined,
"ori": 1,
"range": [Function],
"time": false,
},
},
"select": undefined,
"series": Array [
Object {
"value": [Function],
},
Object {
"facets": undefined,
"fill": [Function],
"paths": [Function],
"points": Object {
"fill": "#808080",
"filter": undefined,
"size": undefined,
"stroke": "#808080",
},
"pxAlign": true,
"scale": "m/s",
"show": true,
"spanGaps": undefined,
"stroke": "#808080",
"value": [Function],
"width": 2,
},
],
"tzDate": [Function],
}
`;
exports[`BarChart utils preparePlotConfigBuilder orientation 2`] = `
Object {
"axes": Array [
Object {
"font": "12px \\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
"gap": 15,
"grid": Object {
"show": false,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"labelGap": 0,
"scale": "x",
"show": true,
"side": 3,
"size": [Function],
"space": [Function],
"splits": [Function],
"stroke": "rgb(204, 204, 220)",
"ticks": Object {
"show": false,
"size": 4,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"timeZone": undefined,
"values": [Function],
},
Object {
"font": "12px \\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
"gap": 5,
"grid": Object {
"show": true,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"labelGap": 0,
"scale": "m/s",
"show": true,
"side": 2,
"size": [Function],
"space": [Function],
"splits": undefined,
"stroke": "rgb(204, 204, 220)",
"ticks": Object {
"show": true,
"size": 4,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"timeZone": undefined,
"values": [Function],
},
],
"cursor": Object {
"drag": Object {
"setScale": false,
},
"focus": Object {
"prox": 30,
},
"points": Object {
"fill": [Function],
"show": false,
"size": [Function],
"stroke": [Function],
"width": [Function],
},
"x": false,
"y": false,
},
"hooks": Object {
"draw": Array [
[Function],
],
"drawClear": Array [
[Function],
],
"init": Array [
[Function],
],
},
"mode": 1,
"padding": undefined,
"scales": Object {
"m/s": Object {
"auto": true,
"dir": 1,
"distr": 1,
"log": undefined,
"ori": 0,
"range": [Function],
"time": undefined,
},
"x": Object {
"auto": true,
"dir": -1,
"distr": 2,
"log": undefined,
"ori": 1,
"range": [Function],
"time": false,
},
},
"select": undefined,
"series": Array [
Object {
"value": [Function],
},
Object {
"facets": undefined,
"fill": [Function],
"paths": [Function],
"points": Object {
"fill": "#808080",
"filter": undefined,
"size": undefined,
"stroke": "#808080",
},
"pxAlign": true,
"scale": "m/s",
"show": true,
"spanGaps": undefined,
"stroke": "#808080",
"value": [Function],
"width": 2,
},
],
"tzDate": [Function],
}
`;
exports[`BarChart utils preparePlotConfigBuilder orientation 3`] = `
Object {
"axes": Array [
Object {
"font": "12px \\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
"gap": 15,
"grid": Object {
"show": false,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"labelGap": 0,
"scale": "x",
"show": true,
"side": 2,
"size": [Function],
"space": [Function],
"splits": [Function],
"stroke": "rgb(204, 204, 220)",
"ticks": Object {
"show": false,
"size": 4,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"timeZone": undefined,
"values": [Function],
},
Object {
"font": "12px \\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
"gap": 5,
"grid": Object {
"show": true,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"labelGap": 0,
"scale": "m/s",
"show": true,
"side": 3,
"size": [Function],
"space": [Function],
"splits": undefined,
"stroke": "rgb(204, 204, 220)",
"ticks": Object {
"show": true,
"size": 4,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"timeZone": undefined,
"values": [Function],
},
],
"cursor": Object {
"drag": Object {
"setScale": false,
},
"focus": Object {
"prox": 30,
},
"points": Object {
"fill": [Function],
"show": false,
"size": [Function],
"stroke": [Function],
"width": [Function],
},
"x": false,
"y": false,
},
"hooks": Object {
"draw": Array [
[Function],
],
"drawClear": Array [
[Function],
],
"init": Array [
[Function],
],
},
"mode": 1,
"padding": undefined,
"scales": Object {
"m/s": Object {
"auto": true,
"dir": 1,
"distr": 1,
"log": undefined,
"ori": 1,
"range": [Function],
"time": undefined,
},
"x": Object {
"auto": true,
"dir": 1,
"distr": 2,
"log": undefined,
"ori": 0,
"range": [Function],
"time": false,
},
},
"select": undefined,
"series": Array [
Object {
"value": [Function],
},
Object {
"facets": undefined,
"fill": [Function],
"paths": [Function],
"points": Object {
"fill": "#808080",
"filter": undefined,
"size": undefined,
"stroke": "#808080",
},
"pxAlign": true,
"scale": "m/s",
"show": true,
"spanGaps": undefined,
"stroke": "#808080",
"value": [Function],
"width": 2,
},
],
"tzDate": [Function],
}
`;
exports[`BarChart utils preparePlotConfigBuilder stacking 1`] = `
Object {
"axes": Array [
Object {
"font": "12px \\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
"gap": 15,
"grid": Object {
"show": false,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"labelGap": 0,
"scale": "x",
"show": true,
"side": 3,
"size": [Function],
"space": [Function],
"splits": [Function],
"stroke": "rgb(204, 204, 220)",
"ticks": Object {
"show": false,
"size": 4,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"timeZone": undefined,
"values": [Function],
},
Object {
"font": "12px \\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
"gap": 5,
"grid": Object {
"show": true,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"labelGap": 0,
"scale": "m/s",
"show": true,
"side": 2,
"size": [Function],
"space": [Function],
"splits": undefined,
"stroke": "rgb(204, 204, 220)",
"ticks": Object {
"show": true,
"size": 4,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"timeZone": undefined,
"values": [Function],
},
],
"cursor": Object {
"drag": Object {
"setScale": false,
},
"focus": Object {
"prox": 30,
},
"points": Object {
"fill": [Function],
"show": false,
"size": [Function],
"stroke": [Function],
"width": [Function],
},
"x": false,
"y": false,
},
"hooks": Object {
"draw": Array [
[Function],
],
"drawClear": Array [
[Function],
],
"init": Array [
[Function],
],
},
"mode": 1,
"padding": undefined,
"scales": Object {
"m/s": Object {
"auto": true,
"dir": 1,
"distr": 1,
"log": undefined,
"ori": 0,
"range": [Function],
"time": undefined,
},
"x": Object {
"auto": true,
"dir": -1,
"distr": 2,
"log": undefined,
"ori": 1,
"range": [Function],
"time": false,
},
},
"select": undefined,
"series": Array [
Object {
"value": [Function],
},
Object {
"facets": undefined,
"fill": [Function],
"paths": [Function],
"points": Object {
"fill": "#808080",
"filter": undefined,
"size": undefined,
"stroke": "#808080",
},
"pxAlign": true,
"scale": "m/s",
"show": true,
"spanGaps": undefined,
"stroke": "#808080",
"value": [Function],
"width": 2,
},
],
"tzDate": [Function],
}
`;
exports[`BarChart utils preparePlotConfigBuilder stacking 2`] = `
Object {
"axes": Array [
Object {
"font": "12px \\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
"gap": 15,
"grid": Object {
"show": false,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"labelGap": 0,
"scale": "x",
"show": true,
"side": 3,
"size": [Function],
"space": [Function],
"splits": [Function],
"stroke": "rgb(204, 204, 220)",
"ticks": Object {
"show": false,
"size": 4,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"timeZone": undefined,
"values": [Function],
},
Object {
"font": "12px \\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
"gap": 5,
"grid": Object {
"show": true,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"labelGap": 0,
"scale": "m/s",
"show": true,
"side": 2,
"size": [Function],
"space": [Function],
"splits": undefined,
"stroke": "rgb(204, 204, 220)",
"ticks": Object {
"show": true,
"size": 4,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"timeZone": undefined,
"values": [Function],
},
],
"cursor": Object {
"drag": Object {
"setScale": false,
},
"focus": Object {
"prox": 30,
},
"points": Object {
"fill": [Function],
"show": false,
"size": [Function],
"stroke": [Function],
"width": [Function],
},
"x": false,
"y": false,
},
"hooks": Object {
"draw": Array [
[Function],
],
"drawClear": Array [
[Function],
],
"init": Array [
[Function],
],
},
"mode": 1,
"padding": undefined,
"scales": Object {
"m/s": Object {
"auto": true,
"dir": 1,
"distr": 1,
"log": undefined,
"ori": 0,
"range": [Function],
"time": undefined,
},
"x": Object {
"auto": true,
"dir": -1,
"distr": 2,
"log": undefined,
"ori": 1,
"range": [Function],
"time": false,
},
},
"select": undefined,
"series": Array [
Object {
"value": [Function],
},
Object {
"facets": undefined,
"fill": [Function],
"paths": [Function],
"points": Object {
"fill": "#808080",
"filter": undefined,
"size": undefined,
"stroke": "#808080",
},
"pxAlign": true,
"scale": "m/s",
"show": true,
"spanGaps": undefined,
"stroke": "#808080",
"value": [Function],
"width": 2,
},
],
"tzDate": [Function],
}
`;
exports[`BarChart utils preparePlotConfigBuilder stacking 3`] = `
Object {
"axes": Array [
Object {
"font": "12px \\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
"gap": 15,
"grid": Object {
"show": false,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"labelGap": 0,
"scale": "x",
"show": true,
"side": 3,
"size": [Function],
"space": [Function],
"splits": [Function],
"stroke": "rgb(204, 204, 220)",
"ticks": Object {
"show": false,
"size": 4,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"timeZone": undefined,
"values": [Function],
},
Object {
"font": "12px \\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
"gap": 5,
"grid": Object {
"show": true,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"labelGap": 0,
"scale": "m/s",
"show": true,
"side": 2,
"size": [Function],
"space": [Function],
"splits": undefined,
"stroke": "rgb(204, 204, 220)",
"ticks": Object {
"show": true,
"size": 4,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"timeZone": undefined,
"values": [Function],
},
],
"cursor": Object {
"drag": Object {
"setScale": false,
},
"focus": Object {
"prox": 30,
},
"points": Object {
"fill": [Function],
"show": false,
"size": [Function],
"stroke": [Function],
"width": [Function],
},
"x": false,
"y": false,
},
"hooks": Object {
"draw": Array [
[Function],
],
"drawClear": Array [
[Function],
],
"init": Array [
[Function],
],
},
"mode": 1,
"padding": undefined,
"scales": Object {
"m/s": Object {
"auto": true,
"dir": 1,
"distr": 1,
"log": undefined,
"ori": 0,
"range": [Function],
"time": undefined,
},
"x": Object {
"auto": true,
"dir": -1,
"distr": 2,
"log": undefined,
"ori": 1,
"range": [Function],
"time": false,
},
},
"select": undefined,
"series": Array [
Object {
"value": [Function],
},
Object {
"facets": undefined,
"fill": [Function],
"paths": [Function],
"points": Object {
"fill": "#808080",
"filter": undefined,
"size": undefined,
"stroke": "#808080",
},
"pxAlign": true,
"scale": "m/s",
"show": true,
"spanGaps": undefined,
"stroke": "#808080",
"value": [Function],
"width": 2,
},
],
"tzDate": [Function],
}
`;
exports[`BarChart utils preparePlotConfigBuilder value visibility 1`] = `
Object {
"axes": Array [
Object {
"font": "12px \\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
"gap": 15,
"grid": Object {
"show": false,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"labelGap": 0,
"scale": "x",
"show": true,
"side": 3,
"size": [Function],
"space": [Function],
"splits": [Function],
"stroke": "rgb(204, 204, 220)",
"ticks": Object {
"show": false,
"size": 4,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"timeZone": undefined,
"values": [Function],
},
Object {
"font": "12px \\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
"gap": 5,
"grid": Object {
"show": true,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"labelGap": 0,
"scale": "m/s",
"show": true,
"side": 2,
"size": [Function],
"space": [Function],
"splits": undefined,
"stroke": "rgb(204, 204, 220)",
"ticks": Object {
"show": true,
"size": 4,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"timeZone": undefined,
"values": [Function],
},
],
"cursor": Object {
"drag": Object {
"setScale": false,
},
"focus": Object {
"prox": 30,
},
"points": Object {
"fill": [Function],
"show": false,
"size": [Function],
"stroke": [Function],
"width": [Function],
},
"x": false,
"y": false,
},
"hooks": Object {
"draw": Array [
[Function],
],
"drawClear": Array [
[Function],
],
"init": Array [
[Function],
],
},
"mode": 1,
"padding": undefined,
"scales": Object {
"m/s": Object {
"auto": true,
"dir": 1,
"distr": 1,
"log": undefined,
"ori": 0,
"range": [Function],
"time": undefined,
},
"x": Object {
"auto": true,
"dir": -1,
"distr": 2,
"log": undefined,
"ori": 1,
"range": [Function],
"time": false,
},
},
"select": undefined,
"series": Array [
Object {
"value": [Function],
},
Object {
"facets": undefined,
"fill": [Function],
"paths": [Function],
"points": Object {
"fill": "#808080",
"filter": undefined,
"size": undefined,
"stroke": "#808080",
},
"pxAlign": true,
"scale": "m/s",
"show": true,
"spanGaps": undefined,
"stroke": "#808080",
"value": [Function],
"width": 2,
},
],
"tzDate": [Function],
}
`;
exports[`BarChart utils preparePlotConfigBuilder value visibility 2`] = `
Object {
"axes": Array [
Object {
"font": "12px \\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
"gap": 15,
"grid": Object {
"show": false,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"labelGap": 0,
"scale": "x",
"show": true,
"side": 3,
"size": [Function],
"space": [Function],
"splits": [Function],
"stroke": "rgb(204, 204, 220)",
"ticks": Object {
"show": false,
"size": 4,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"timeZone": undefined,
"values": [Function],
},
Object {
"font": "12px \\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
"gap": 5,
"grid": Object {
"show": true,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"labelGap": 0,
"scale": "m/s",
"show": true,
"side": 2,
"size": [Function],
"space": [Function],
"splits": undefined,
"stroke": "rgb(204, 204, 220)",
"ticks": Object {
"show": true,
"size": 4,
"stroke": "rgba(240, 250, 255, 0.09)",
"width": 1,
},
"timeZone": undefined,
"values": [Function],
},
],
"cursor": Object {
"drag": Object {
"setScale": false,
},
"focus": Object {
"prox": 30,
},
"points": Object {
"fill": [Function],
"show": false,
"size": [Function],
"stroke": [Function],
"width": [Function],
},
"x": false,
"y": false,
},
"hooks": Object {
"draw": Array [
[Function],
],
"drawClear": Array [
[Function],
],
"init": Array [
[Function],
],
},
"mode": 1,
"padding": undefined,
"scales": Object {
"m/s": Object {
"auto": true,
"dir": 1,
"distr": 1,
"log": undefined,
"ori": 0,
"range": [Function],
"time": undefined,
},
"x": Object {
"auto": true,
"dir": -1,
"distr": 2,
"log": undefined,
"ori": 1,
"range": [Function],
"time": false,
},
},
"select": undefined,
"series": Array [
Object {
"value": [Function],
},
Object {
"facets": undefined,
"fill": [Function],
"paths": [Function],
"points": Object {
"fill": "#808080",
"filter": undefined,
"size": undefined,
"stroke": "#808080",
},
"pxAlign": true,
"scale": "m/s",
"show": true,
"spanGaps": undefined,
"stroke": "#808080",
"value": [Function],
"width": 2,
},
],
"tzDate": [Function],
}
`;