Enable no fill in seriesOverrides
This allows fill to take the minimum value of 0. Change-Id: I4c3a37fcfd6de24332ee05ca0d897e6d4973c525
This commit is contained in:
parent
ffa9e89794
commit
a38798a292
@ -97,7 +97,7 @@ class Graph(Base):
|
||||
v.Required('alias'): v.All(str, v.Length(min=1)),
|
||||
v.Optional('bars'): v.All(bool),
|
||||
v.Optional('lines'): v.All(bool),
|
||||
v.Optional('fill'): v.All(int, v.Range(min=1, max=10)),
|
||||
v.Optional('fill'): v.All(int, v.Range(min=0, max=10)),
|
||||
v.Optional('width'): v.All(int, v.Range(min=1, max=10)),
|
||||
v.Optional('nullPointMode'): v.All(null_point_modes),
|
||||
v.Optional('fillBelowTo'): v.All(str),
|
||||
|
49
tests/schema/fixtures/dashboard-0016.json
Normal file
49
tests/schema/fixtures/dashboard-0016.json
Normal file
@ -0,0 +1,49 @@
|
||||
{
|
||||
"dashboard": {
|
||||
"new-dashboard": {
|
||||
"rows": [
|
||||
{
|
||||
"collapse": false,
|
||||
"editable": true,
|
||||
"height": "250px",
|
||||
"panels": [
|
||||
{
|
||||
"bars": false,
|
||||
"editable": true,
|
||||
"error": false,
|
||||
"fill": 1,
|
||||
"lines": true,
|
||||
"linewidth": 2,
|
||||
"percentage": false,
|
||||
"pointradius": 5,
|
||||
"points": false,
|
||||
"seriesOverrides": [
|
||||
{
|
||||
"alias": "foo",
|
||||
"fill": 0,
|
||||
"lines": true
|
||||
}
|
||||
],
|
||||
"span": 12,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [],
|
||||
"title": "no title (click here)",
|
||||
"type": "graph",
|
||||
"x-axis": true,
|
||||
"y-axis": true
|
||||
}
|
||||
],
|
||||
"showTitle": false,
|
||||
"title": "New row"
|
||||
}
|
||||
],
|
||||
"templating": {
|
||||
"enabled": false,
|
||||
"list": []
|
||||
},
|
||||
"timezone": "utc",
|
||||
"title": "New dashboard"
|
||||
}
|
||||
}
|
||||
}
|
12
tests/schema/fixtures/dashboard-0016.yaml
Normal file
12
tests/schema/fixtures/dashboard-0016.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
dashboard:
|
||||
title: New dashboard
|
||||
rows:
|
||||
- title: New row
|
||||
height: 250px
|
||||
panels:
|
||||
- title: no title (click here)
|
||||
type: graph
|
||||
seriesOverrides:
|
||||
- alias: foo
|
||||
fill: 0
|
||||
lines: True
|
Loading…
x
Reference in New Issue
Block a user