mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-04 09:50:09 +00:00
migrating widgets to nvd3
This commit is contained in:
parent
ac8bd534ea
commit
747980cf45
13 changed files with 268 additions and 187 deletions
|
|
@ -19,33 +19,12 @@ local WIDGET_TYPES = {
|
|||
pie = {
|
||||
i18n = "Pie"
|
||||
},
|
||||
doughnut = {
|
||||
i18n = "Doughnut"
|
||||
},
|
||||
polarArea = {
|
||||
i18n = "Polar"
|
||||
donut = {
|
||||
i18n = "Donut"
|
||||
},
|
||||
table = {
|
||||
i18n = "Table"
|
||||
},
|
||||
line = {
|
||||
i18n = "Line"
|
||||
},
|
||||
bar = {
|
||||
i18n = "Bar"
|
||||
},
|
||||
radar = {
|
||||
i18n = "Radar"
|
||||
},
|
||||
bubble = {
|
||||
i18n = "Bubble"
|
||||
},
|
||||
scatter = {
|
||||
i18n = "Scatter"
|
||||
},
|
||||
horizontalBar = {
|
||||
i18n = "Horizontal Bar"
|
||||
},
|
||||
}
|
||||
|
||||
local function create_hash_widget(name, ds_hash)
|
||||
|
|
@ -207,7 +186,7 @@ function widgets_utils.generate_response(widget, params)
|
|||
local origin = ds.origin:gsub("%.lua", "")
|
||||
|
||||
-- io.write("Executing "..origin.."\n")
|
||||
|
||||
|
||||
-- Call the origin to return
|
||||
local response = require(origin)
|
||||
response = response:getData(widget.type)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue