mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Updated alarm widget
This commit is contained in:
parent
7dea0f7f35
commit
1a59a9cc80
5 changed files with 49 additions and 35 deletions
|
|
@ -70,26 +70,18 @@ function widget_gui_utils.register_bar_chart(name, update_time, datasources, add
|
|||
widget_gui_utils.register_chart_widget(name, 'bar', update_time, datasources, additional_params)
|
||||
end
|
||||
|
||||
function widget_gui_utils.register_timeseries_bar_chart(name, update_time, datasources)
|
||||
widget_gui_utils.register_chart_widget(name, 'bar', update_time, datasources, {
|
||||
function widget_gui_utils.register_timeseries_area_chart(name, update_time, datasources)
|
||||
widget_gui_utils.register_chart_widget(name, 'area', update_time, datasources, {
|
||||
apex = {
|
||||
legend = {
|
||||
show = false,
|
||||
show = true,
|
||||
},
|
||||
chart = {
|
||||
type = "bar",
|
||||
type = "area",
|
||||
width = "100%",
|
||||
height = "80%",
|
||||
foreColor = "#999",
|
||||
height = "100%",
|
||||
-- foreColor = "#999",
|
||||
stacked = true,
|
||||
animations = {
|
||||
animateGradually = false,
|
||||
easing = "easeout",
|
||||
speed = 500,
|
||||
dynamicAnimation = {
|
||||
enabled = false
|
||||
}
|
||||
},
|
||||
toolbar = {
|
||||
tools = {
|
||||
selection = false,
|
||||
|
|
@ -106,6 +98,13 @@ function widget_gui_utils.register_timeseries_bar_chart(name, update_time, datas
|
|||
dataLabels = {
|
||||
enabled = false
|
||||
},
|
||||
stroke = {
|
||||
show = false,
|
||||
curve = 'smooth',
|
||||
},
|
||||
fill = {
|
||||
type = "solid"
|
||||
},
|
||||
xaxis = {
|
||||
type = "datetime",
|
||||
labels = {
|
||||
|
|
@ -119,7 +118,7 @@ function widget_gui_utils.register_timeseries_bar_chart(name, update_time, datas
|
|||
},
|
||||
},
|
||||
yaxis = {
|
||||
show = false,
|
||||
show = true,
|
||||
},
|
||||
grid = {
|
||||
show = false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue