luci-app-statistics: support specifying line width in graph definitions
This allows a graph definition to explicitely request LINE1, LINE2 or LINE3 for a data source. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
b1d307d3f5
commit
cace1d80ed
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ function Graph._generic( self, opts, plugin, plugin_instance, dtype, index )
|
||||||
|
|
||||||
-- create line1 statement
|
-- create line1 statement
|
||||||
_tif( _args, "LINE%d:%s_%s#%s:%s",
|
_tif( _args, "LINE%d:%s_%s#%s:%s",
|
||||||
source.noarea and 2 or 1,
|
source.width or (source.noarea and 2 or 1),
|
||||||
source.sname, var, line_color, legend )
|
source.sname, var, line_color, legend )
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue