diff --git a/ui/src/app/components/legend-config-panel.controller.js b/ui/src/app/components/legend-config-panel.controller.js
index 6253da01a5..8783df2533 100644
--- a/ui/src/app/components/legend-config-panel.controller.js
+++ b/ui/src/app/components/legend-config-panel.controller.js
@@ -28,20 +28,6 @@ export default function LegendConfigPanelController(mdPanelRef, $scope, types, l
$scope.theForm.$setPristine();
};
- vm.onChangeDirection = function() {
- if (vm.legendConfig.direction === types.direction.row.value) {
- vm.isRowDirection = true;
- vm.legendConfig.position = types.position.bottom.value;
- vm.legendConfig.showMin = false;
- vm.legendConfig.showMax = false;
- vm.legendConfig.showAvg = false;
- vm.legendConfig.showTotal = false;
- }
- else {
- vm.isRowDirection = false;
- }
- };
-
$scope.$watch('vm.legendConfig', function () {
if (onLegendConfigUpdate) {
onLegendConfigUpdate(vm.legendConfig);
diff --git a/ui/src/app/components/legend-config-panel.tpl.html b/ui/src/app/components/legend-config-panel.tpl.html
index 848330744d..985704115e 100644
--- a/ui/src/app/components/legend-config-panel.tpl.html
+++ b/ui/src/app/components/legend-config-panel.tpl.html
@@ -22,8 +22,7 @@
-
+
{{direction.name | translate}}
@@ -38,16 +37,16 @@
- {{ 'legend.show-min' | translate }}
- {{ 'legend.show-max' | translate }}
- {{ 'legend.show-avg' | translate }}
- {{ 'legend.show-total' | translate }}
diff --git a/ui/src/app/components/legend.scss b/ui/src/app/components/legend.scss
index b363319e95..5130783f6f 100644
--- a/ui/src/app/components/legend.scss
+++ b/ui/src/app/components/legend.scss
@@ -14,7 +14,6 @@
* limitations under the License.
*/
table.tb-legend {
- width: 100%;
font-size: 12px;
.tb-legend-header,
@@ -37,6 +36,15 @@ table.tb-legend {
white-space: nowrap;
}
+ .tb-legend-type {
+ min-width: 50px;
+ padding: 0 10px 1px 0;
+ font-weight: 700;
+ color: rgb(255, 110, 64);
+ text-align: right;
+ white-space: nowrap;
+ }
+
.tb-legend-line {
display: inline-block;
width: 15px;
@@ -45,7 +53,9 @@ table.tb-legend {
}
.tb-legend-label {
+ padding: 2px 10px;
text-align: left;
+ white-space: nowrap;
outline: none;
&.tb-horizontal {
@@ -63,3 +73,12 @@ table.tb-legend {
}
}
}
+
+table.tb-legend-column {
+ width: 100%;
+}
+
+table.tb-legend-row {
+ width: auto;
+ margin-left: auto;
+}
diff --git a/ui/src/app/components/legend.tpl.html b/ui/src/app/components/legend.tpl.html
index d8ce5df1cb..157835729b 100644
--- a/ui/src/app/components/legend.tpl.html
+++ b/ui/src/app/components/legend.tpl.html
@@ -15,7 +15,8 @@
limitations under the License.
-->
-
+
-
+
|
{{ legendData.data[legendKey.dataIndex].avg }} |
{{ legendData.data[legendKey.dataIndex].total }} |
+
+ |
+
+
+
+ {{ legendKey.dataKey.label }}
+
+ |
+
+
+ | {{ 'legend.min' | translate }} |
+ {{ legendData.data[legendKey.dataIndex].min }} |
+
+
+ | {{ 'legend.max' | translate }} |
+ {{ legendData.data[legendKey.dataIndex].max }} |
+
+
+ | {{ 'legend.avg' | translate }} |
+ {{ legendData.data[legendKey.dataIndex].avg }} |
+
+
+ | {{ 'legend.total' | translate }} |
+ {{ legendData.data[legendKey.dataIndex].total }} |
+
diff --git a/ui/src/app/locale/locale.constant-es_ES.json b/ui/src/app/locale/locale.constant-es_ES.json
index 0d76e8b566..0480b9d274 100644
--- a/ui/src/app/locale/locale.constant-es_ES.json
+++ b/ui/src/app/locale/locale.constant-es_ES.json
@@ -670,6 +670,10 @@
"dialog": {
"close": "Cerrar diálogo"
},
+ "direction": {
+ "column": "Columna",
+ "row": "Fila"
+ },
"error": {
"unable-to-connect": "¡No se puede conectar al servidor! Por favor, revise su conexión a Internet.",
"unhandled-error-code": "Código de error no controlado: {{errorCode}}",
@@ -1111,6 +1115,7 @@
"select": "Seleccionar diseño objetivo"
},
"legend": {
+ "direction": "Dirección de la leyenda",
"position": "Posición de la leyenda",
"show-max": "Mostrar valor máximo",
"show-min": "Mostrar valor mínimo",
diff --git a/ui/src/app/locale/locale.constant-it_IT.json b/ui/src/app/locale/locale.constant-it_IT.json
index b53bdbf558..f17f2ac551 100644
--- a/ui/src/app/locale/locale.constant-it_IT.json
+++ b/ui/src/app/locale/locale.constant-it_IT.json
@@ -670,6 +670,10 @@
"dialog": {
"close": "Close dialog"
},
+ "direction": {
+ "column": "Colonna",
+ "row": "Riga"
+ },
"error": {
"unable-to-connect": "Impossibile connettersi al server! Controlla la connessione ad Internet.",
"unhandled-error-code": "Codice errore non gestito: {{errorCode}}",
@@ -1116,6 +1120,7 @@
"select": "Select target layout"
},
"legend": {
+ "direction": "Direzione",
"position": "Posizione Legenda",
"show-max": "Mostra valore max",
"show-min": "Mostra valore min",