Enable no fill in seriesOverrides

This allows fill to take the minimum value of 0.

Change-Id: I4c3a37fcfd6de24332ee05ca0d897e6d4973c525
This commit is contained in:
Ye Na Rhee 2016-04-17 22:04:45 +02:00
parent ffa9e89794
commit a38798a292
3 changed files with 62 additions and 1 deletions

View File

@ -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),

View 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"
}
}
}

View 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