Skip to content
Snippets Groups Projects
Commit 10c28dc2 authored by Eduardo L. Buratti's avatar Eduardo L. Buratti
Browse files

web: Fix charts style (position, width and legend text)

parent 02b897b7
No related branches found
No related tags found
No related merge requests found
...@@ -126,9 +126,9 @@ angular.module('datasid.controllers', []). ...@@ -126,9 +126,9 @@ angular.module('datasid.controllers', []).
AvailFactory.get(options, function (data) { AvailFactory.get(options, function (data) {
$scope.pieChart.chart.series[0].setData([ $scope.pieChart.chart.series[0].setData([
['Menos de 10 dias', data.green[0]], ['Menos de\n10 dias', data.green[0]],
['Entre 11 e 30 dias', data.yellow[0]], ['Entre 11\ne 30 dias', data.yellow[0]],
['Mais de 30 dias', data.red[0]] ['Mais de\n30 dias', data.red[0]]
]); ]);
}); });
} }
......
...@@ -101,7 +101,7 @@ var DefaultCharts = { ...@@ -101,7 +101,7 @@ var DefaultCharts = {
}, },
tooltip: { tooltip: {
formatter: function() { formatter: function() {
return '<b>' + this.key.replace('\\', ' ') + '</b><br/>' + formatNumber(this.y) + ' máquinas' return '<b>' + this.key.replace('\n', ' ') + '</b><br/>' + formatNumber(this.y) + ' máquinas'
} }
}, },
plotOptions: { plotOptions: {
...@@ -111,7 +111,7 @@ var DefaultCharts = { ...@@ -111,7 +111,7 @@ var DefaultCharts = {
distance: 5, distance: 5,
connectorWidth: 0, connectorWidth: 0,
formatter: function() { formatter: function() {
return '<b>'+ this.point.name.split('\\').join('</b><br/><b>') + return '<b>'+ this.point.name.split('\n').join('</b><br/><b>') +
'</b><br/>' + Math.round(this.percentage) + '%'; '</b><br/>' + Math.round(this.percentage) + '%';
} }
} }
...@@ -119,9 +119,9 @@ var DefaultCharts = { ...@@ -119,9 +119,9 @@ var DefaultCharts = {
}, },
series: [ series: [
{data: [ {data: [
['Menos de 10 dias', 0], ['Menos de\n10 dias', 0],
['Entre 11 e 30 dias', 0], ['Entre 11\ne 30 dias', 0],
['Mais de 30 dias', 0] ['Mais de\n30 dias', 0]
]} ]}
] ]
}, },
...@@ -195,9 +195,9 @@ var DefaultCharts = { ...@@ -195,9 +195,9 @@ var DefaultCharts = {
itemMarginBottom: 3 itemMarginBottom: 3
}, },
series: [ series: [
{name: 'Menos de 10 dias'}, {name: 'Último contato há menos de 10 dias'},
{name: 'Entre 11 e 30 dias'}, {name: 'Último contato entre 11 e 30 dias'},
{name: 'Mais de 30 dias'} {name: 'Último contato há mais de 30 dias'}
] ]
} }
}; };
\ No newline at end of file
...@@ -2,6 +2,10 @@ ...@@ -2,6 +2,10 @@
<p>Análise das máquinas com o agente de coleta instalado.</p> <p>Análise das máquinas com o agente de coleta instalado.</p>
<p>Clique no gráfico de barras para visualizar a situação das máquinas no próximo nível.</p> <p>Clique no gráfico de barras para visualizar a situação das máquinas no próximo nível.</p>
<div mc-chart="barChart"></div> <div class="row">
<div mc-chart="pieChart"></div> <div class="col-lg-6" style="height: 300px" mc-chart="barChart"></div>
<div mc-chart="histChart"></div> <div class="col-lg-6" style="height: 300px" mc-chart="pieChart"></div>
\ No newline at end of file </div>
<div class="row">
<div class="col-lg-10 col-lg-offset-1" style="height: 300px" mc-chart="histChart"></div>
</div>
\ No newline at end of file
...@@ -104,5 +104,6 @@ ...@@ -104,5 +104,6 @@
} }
.attendance-content { .attendance-content {
width: 700px;
float: left; float: left;
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment