Default scale to 'linear'

pull/10616/head
Andrew Watkins 2017-08-22 15:11:29 -07:00
parent bc9e854f88
commit 04f25f6915
1 changed files with 5 additions and 0 deletions

View File

@ -290,6 +290,10 @@ func UnmarshalDashboard(data []byte, d *chronograf.Dashboard) error {
r.Base = "10"
}
if r.Scale == "" {
r.Scale = "linear"
}
if r.Bounds != nil {
axes[a] = chronograf.Axis{
Bounds: r.Bounds,
@ -304,6 +308,7 @@ func UnmarshalDashboard(data []byte, d *chronograf.Dashboard) error {
axes[a] = chronograf.Axis{
Bounds: []string{},
Base: r.Base,
Scale: r.Scale,
}
}
}