Module: check_mk
Branch: master
Commit: e1c5834969b21d9497419fe1b8f3a7c5f99ad7a0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e1c5834969b21d…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Jan 27 12:40:46 2016 +0100
Add central default render options for graphs
---
web/plugins/views/painters.py | 15 ++-------------
1 file changed, 2 insertions(+), 13 deletions(-)
diff --git a/web/plugins/views/painters.py b/web/plugins/views/painters.py
index 04a5598..d06ee7b 100644
--- a/web/plugins/views/painters.py
+++ b/web/plugins/views/painters.py
@@ -876,19 +876,8 @@ def paint_time_graph_cmk(row, show_timeranges=False):
"host_name" : row["host_name"],
"service_description" : row.get("service_description",
"_HOST_"),
})
-
- graph_data_range = {
- "time_range" : get_graph_timerange_from_painter_options()
- }
-
- graph_render_options = {
- "font_size" : 11,
- "show_controls" : True,
- "show_service" : False,
- "show_legend" : True,
- "resizable" : True,
- "interaction" : True,
- }
+ graph_data_range = { "time_range" :
get_graph_timerange_from_painter_options() }
+ graph_render_options = {}
return "", metrics.render_graphs_from_specification_html(
graph_specification,