chronograf
chronograf copied to clipboard
As a user I can define the y axis range
Currently graphs set the y axis to be dynamic between 0 and the max y value. We want to be able to set the min and max y values to be part of the template definition.
Each cell will have an optional yrange value that will be an array with a min an max. This range should only affect the values on the left side of the graph (this only matters if #568 was implemented first)
If there is no yrange value then the default behavior should occur.
This will look like
{
"id": "ec6c48f4-48ca-4ba7-a842-5b700e19f274",
"measurement": "system",
"app": "system",
"cells": [
{
"x": 0,
"y": 0,
"w": 4,
"h": 4,
"i": "6ec7e632-2c19-475c-8747-56feaacf46ce",
"yrange": [0,100],
"ylabel": "foobar",
"name": "System Load",
"queries": [
{
"query": "SELECT mean(\"load1\") AS \"load\" FROM \"telegraf\"..\"system\"",
"db": "telegraf",
"rp": "",
"groupbys": [],
"wheres": []
}
]
}
]
}
