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
feature: Added ability to output graphs as svg #5959
Conversation
Auto-Deploy finished, Test PR at http://5959.ci.librenms.org or https://5959.ci.librenms.org |
html/includes/graphs/graph.inc.php
Outdated
@@ -102,6 +102,10 @@ function graph_error($string) | |||
} | |||
} else { | |||
// $rrd_options .= " HRULE:0#999999"; | |||
if ($config['webui']['graph_type'] === 'svg') { | |||
$rrd_options .= " --imgformat=SVG -m 0.75 -W 'librenms'"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why add the librenms text at the bottom?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was just debug
Auto-Deploy finished, Test PR at http://5959.ci.librenms.org or https://5959.ci.librenms.org |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
It might be a good idea to suggest users of this use http2 or gzip.
nginx:
gzip on;
gzip_types image/svg+xml; #there should be more types here too
I'll try and get those docs together tomorrow. |
All done |
Auto-Deploy finished, Test PR at http://5959.ci.librenms.org or https://5959.ci.librenms.org |
The inspection completed: 1 updated code elements |
Thanks, look very nice on my 4K/5K displays. |
DO NOT DELETE THIS TEXT
Please note
Testers
If you would like to test this pull request then please run:
./scripts/github-apply <pr_id>
, i.e./scripts/github-apply 5926