Skip to content

added template helper stack_outline.php #99

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

georgehansper
Copy link

The file stack_outline.php is a template helper.

It makes it very easy to combine multiple Data Sources into a single graph, either stacked or not.
Templates can be reduced to 2 lines of php, like this:

$opt[1] = "--vertical-label "bytes" --title "Disk usage for $hostname" -l 0 ";
require('stack_outline.php');

The above example is included in the comments.

I can provide further, more sophisticated usage examples.

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

Successfully merging this pull request may close these issues.

1 participant