Commit d51d5af9 by Chia-liang Kao Committed by Torkel Ödegaard

Cleanup legend value by using css content

parent b98a8ee8
...@@ -13,20 +13,15 @@ ...@@ -13,20 +13,15 @@
{{series.alias}} {{series.alias}}
</a> </a>
</div> </div>
<div class="graph-legend-value small" ng-show="panel.legend.values && panel.legend.current"> <div class="graph-legend-value current small" ng-show="panel.legend.values && panel.legend.current" ng-bind="series.current">
Current: {{series.current}}
</div> </div>
<div class="graph-legend-value small" ng-show="panel.legend.values && panel.legend.min"> <div class="graph-legend-value min small" ng-show="panel.legend.values && panel.legend.min" ng-bind="series.min">
Min: {{series.min}}
</div> </div>
<div class="graph-legend-value small" ng-show="panel.legend.values && panel.legend.max"> <div class="graph-legend-value max small" ng-show="panel.legend.values && panel.legend.max" ng-bind="series.max">
Max: {{series.max}}
</div> </div>
<div class="graph-legend-value small" ng-show="panel.legend.values && panel.legend.total"> <div class="graph-legend-value total small" ng-show="panel.legend.values && panel.legend.total" ng-bind="series.total">
Total: {{series.total}}
</div> </div>
<div class="graph-legend-value small" ng-show="panel.legend.values && panel.legend.avg"> <div class="graph-legend-value avg small" ng-show="panel.legend.values && panel.legend.avg" ng-bind="series.avg">
Avg: {{series.avg}}
</div> </div>
</div> </div>
......
...@@ -25,6 +25,21 @@ ...@@ -25,6 +25,21 @@
.graph-legend-value { .graph-legend-value {
float: left; float: left;
white-space: nowrap; white-space: nowrap;
&.current:before {
content: "Current: "
}
&.max:before {
content: "Max: "
}
&.min:before {
content: "Min: "
}
&.total:before {
content: "Total: "
}
&.avg:before {
content: "Avg: "
}
} }
.graph-legend-series { .graph-legend-series {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment