f839c376af
In addition this updates Grafonnet to include bar gauges.
Change-Id: I538bd965d52f841b24c9607fc97d5ac748b9d68b
21 lines
314 B
Plaintext
21 lines
314 B
Plaintext
local defaults = import './defaults.libsonnet';
|
|
|
|
local TOTAL_WIDTH = 24;
|
|
local DEFAULT_HEIGHT = 11;
|
|
|
|
{
|
|
new(
|
|
row,
|
|
column,
|
|
total_columns=2,
|
|
height=DEFAULT_HEIGHT
|
|
):: {
|
|
local width = TOTAL_WIDTH / total_columns,
|
|
|
|
x: column * width,
|
|
y: row * height,
|
|
w: width,
|
|
h: height,
|
|
},
|
|
}
|