-
Notifications
You must be signed in to change notification settings - Fork 31
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
Possibility to scale series #82
Comments
I'm sorry, I don't understand what you are trying to do. The examples you gave look like line graphs with negative values. |
The easiest way to do that is to pre-process the values you pass to SVGGraph, and multiply all the values you want to be negative by -1. // make series at array positions 3 and 4 negative
$negative_index = [3, 4];
foreach($values as $key => $row) {
foreach($negative_index as $index) {
$values[$key][$index] = $row[$index] * -1;
}
} |
Yes, I know that, but you got wrong values. The idea is an additional Y axis inverted like grafana/grafana#38202 / grafana/grafana#44774 |
OK, I'll add it to the list of things to look at. |
Thank you very much : I want to use that to extend Zabbix widget (svggraph widget use your project, do you know ?) to get beautiful graphs for bandwidth. |
Are you sure that Zabbix uses SVGGraph? I can't see anything about it. |
Oh no, I was very wrong. I have skimmed through the PHP classes and linked to your project. I'm really sorry for this blunder... |
hello,
I search a way to transform/scale one or more series to obtain graph like that :
I don't find any option to make that.
The text was updated successfully, but these errors were encountered: