mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
added unit (y axis format) mapping support for png renderer (#22)
This commit is contained in:
parent
487aa1f2c3
commit
d90f2537a4
@ -180,6 +180,18 @@ function (angular, $, kbn, moment, _) {
|
|||||||
url += scope.panel['x-axis'] ? '' : '&hideAxes=true';
|
url += scope.panel['x-axis'] ? '' : '&hideAxes=true';
|
||||||
url += scope.panel['y-axis'] ? '' : '&hideYAxis=true';
|
url += scope.panel['y-axis'] ? '' : '&hideYAxis=true';
|
||||||
|
|
||||||
|
switch(scope.panel.y_format) {
|
||||||
|
case 'bytes':
|
||||||
|
url += '&yUnitSystem=binary';
|
||||||
|
break;
|
||||||
|
case 'short':
|
||||||
|
url += '&yUnitSystem=si';
|
||||||
|
break;
|
||||||
|
case 'none':
|
||||||
|
url += '&yUnitSystem=none';
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
switch(scope.panel.nullPointMode) {
|
switch(scope.panel.nullPointMode) {
|
||||||
case 'connected':
|
case 'connected':
|
||||||
url += '&lineMode=connected';
|
url += '&lineMode=connected';
|
||||||
|
Loading…
Reference in New Issue
Block a user