Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify Default Plot Duration #62

Open
strefli3 opened this issue May 14, 2013 · 0 comments
Open

Specify Default Plot Duration #62

strefli3 opened this issue May 14, 2013 · 0 comments

Comments

@strefli3
Copy link

I'd like to be able to specify a default plot duration. For example, from a single hour to a day.

After looking through the code I have been focusing my attention on base.js, specifically here:

} else {
        $selected_plugin = $(this).html();
        $(".graph-imgs-container").html('');
        $.getJSON('cgi-bin/collection.modified.cgi?action=graphs_json;plugin=' $
            $graph_json = data;
            create_graph_list("hour", data.hour);
            $('#graph-container').html(get_graph_main_container($selected_host)$

            lazy_check();
        });

by changing it to

} else {
        $selected_plugin = $(this).html();
        $(".graph-imgs-container").html('');
        $.getJSON('cgi-bin/collection.modified.cgi?action=graphs_json;plugin=' $
            $graph_json = data;
            create_graph_list("day", data.day);
            $('#graph-container').html(get_graph_main_container($selected_host)$

            lazy_check();
        });

But this does not seem to work. Specifically it it does not produce plots; no errors in the web browser or the Apache logs. Perhaps you could give me a quick overview on where to focus my effort so I can pull this off?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant