Add tooltip sort

You can sort the tooltips in descending (1) or ascending (2) order.

Change-Id: I931419f832b6fd4a537431e34c099e5f2884d4c2
This commit is contained in:
Ian Wienand 2018-09-14 15:28:36 +10:00
parent 2ffded73e9
commit 5463ff095e
3 changed files with 3 additions and 0 deletions

View File

@ -66,6 +66,7 @@ class Graph(Base):
v.Required('query_as_alias', default=True): v.All(bool),
v.Required('shared', default=True): v.All(bool),
v.Required('value_type', default='cumulative'): v.All(value_types),
v.Optional('sort'): v.Range(min=0, max=2),
}
series_override = {

View File

@ -25,6 +25,7 @@
"tooltip": {
"query_as_alias": true,
"shared": true,
"sort": 2,
"value_type": "individual"
},
"type": "graph",

View File

@ -8,3 +8,4 @@ dashboard:
type: graph
tooltip:
value_type: individual
sort: 2