Correciones karedes alamcen horizontal, Proveedores abonar error al pagar dolares en dolares
This commit is contained in:
@@ -7,12 +7,12 @@
|
||||
<style>
|
||||
#chartdiv {
|
||||
width: 100%;
|
||||
height: 500px;
|
||||
height: 400px;
|
||||
}
|
||||
|
||||
#chartdivgral {
|
||||
width: 100%;
|
||||
min-height: 500px;
|
||||
min-height: 400px;
|
||||
}
|
||||
|
||||
.fa.fa-bar-chart {
|
||||
@@ -1541,10 +1541,12 @@
|
||||
}
|
||||
function CargaGraficaBarras() {
|
||||
let data = cdatos;
|
||||
let newData = JSON.parse(JSON.stringify(data));
|
||||
newData.sort((a, b) => a.Valor - b.Valor);
|
||||
var chart = AmCharts.makeChart("chartdiv", {
|
||||
"type": "serial",
|
||||
"theme": "light",
|
||||
"dataProvider": data,
|
||||
"dataProvider": newData,
|
||||
"startDuration": 2,
|
||||
"valueAxes": [{
|
||||
"position": "left",
|
||||
@@ -1586,7 +1588,8 @@
|
||||
}
|
||||
return item;
|
||||
});
|
||||
|
||||
newData.sort((a, b) => b.Valor - a.Valor );
|
||||
//console.log(newData);
|
||||
var chart = AmCharts.makeChart("chartdiv", {
|
||||
"type": "pie",
|
||||
"theme": "light",
|
||||
@@ -1610,8 +1613,12 @@
|
||||
|
||||
currentid = data.id;
|
||||
if (currentid == 1) {
|
||||
$("#chartdiv").css("height", "400px");
|
||||
$("#chartdivgral").css("height", "400px");
|
||||
CargaGraficaBarras();
|
||||
} else {
|
||||
$("#chartdiv").css("height", "700px");
|
||||
$("#chartdivgral").css("height", "700px");
|
||||
CargaGraficaPastel();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user