mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Adds colors to widgets data
This commit is contained in:
parent
abd6ea6933
commit
279c035563
2 changed files with 20 additions and 4 deletions
|
|
@ -33,7 +33,7 @@ end
|
|||
|
||||
-- ########################################################
|
||||
|
||||
local graph_colors = {
|
||||
graph_utils.graph_colors = {
|
||||
'#1f77b4',
|
||||
'#ff7f0e',
|
||||
'#2ca02c',
|
||||
|
|
@ -652,7 +652,7 @@ var graph = new Rickshaw.Graph( {
|
|||
|
||||
for serie_idx, serie in ipairs(data.series) do
|
||||
print("{name: \"" .. serie.label .. "\"")
|
||||
print("\n, color: '".. graph_colors[serie_idx] .."', data: [")
|
||||
print("\n, color: '".. graph_utils.graph_colors[serie_idx] .."', data: [")
|
||||
|
||||
local t = data.start
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue