mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Merge branch 'ent-8970-bug-en-leyenda-al-generar-grafica-sql-en-plantillas-de-informe' into 'develop'
fixed visual error sql graph pandora_enterprise#8970 See merge request artica/pandorafms!4888
This commit is contained in:
commit
7ef4f00aea
@ -15,6 +15,8 @@ function pandoraFlotPie(
|
|||||||
colors,
|
colors,
|
||||||
hide_labels
|
hide_labels
|
||||||
) {
|
) {
|
||||||
|
height = parseInt(height);
|
||||||
|
|
||||||
labels = labels.split(separator);
|
labels = labels.split(separator);
|
||||||
var data = values.split(separator);
|
var data = values.split(separator);
|
||||||
|
|
||||||
@ -79,11 +81,22 @@ function pandoraFlotPie(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var discount = 20;
|
||||||
|
if (water_mark) {
|
||||||
|
discount = 40;
|
||||||
|
}
|
||||||
|
|
||||||
var plot = $.plot($("#" + graph_id), data, conf_pie);
|
var plot = $.plot($("#" + graph_id), data, conf_pie);
|
||||||
|
|
||||||
var legends = $("#" + graph_id + " .legendLabel");
|
var legends = $("#" + graph_id + " .legendLabel");
|
||||||
legends.css("font-size", font_size + "pt");
|
legends.css("font-size", font_size + "pt");
|
||||||
|
|
||||||
|
var tableDiv = $("#" + graph_id + " .legend > div");
|
||||||
|
tableDiv.css("max-height", height - discount + "px");
|
||||||
|
|
||||||
|
var tableLegend = $("#" + graph_id + " .legend table");
|
||||||
|
tableLegend.css("max-height", height - discount + "px");
|
||||||
|
|
||||||
// Events
|
// Events
|
||||||
$("#" + graph_id).bind("plothover", pieHover);
|
$("#" + graph_id).bind("plothover", pieHover);
|
||||||
//$("#" + graph_id).bind("plotclick", pieClick);
|
//$("#" + graph_id).bind("plotclick", pieClick);
|
||||||
@ -443,14 +456,15 @@ function pandoraFlotHBars(
|
|||||||
"pt !important;" +
|
"pt !important;" +
|
||||||
"margin: 0; max-width: 200px;" +
|
"margin: 0; max-width: 200px;" +
|
||||||
"margin-right:5px;" +
|
"margin-right:5px;" +
|
||||||
"margin-left: -1.5em" +
|
"margin-left: -1.5em;" +
|
||||||
"text-align: right" +
|
"text-align: right;" +
|
||||||
"text-overflow: ellipsis;" +
|
"text-overflow: ellipsis;" +
|
||||||
"overflow: hidden;" +
|
"overflow: hidden;" +
|
||||||
"white-space: pre;";
|
"white-space: pre;";
|
||||||
|
|
||||||
if (label.indexOf("<br>") != -1) {
|
if (label.indexOf("<br>") != -1) {
|
||||||
div_attributes += "min-height: 2.5em;";
|
var label_array = label.split("<br>");
|
||||||
|
label = label_array[0] + label_array[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
div_attributes += '" title="' + label + '" style="overflow: hidden;"';
|
div_attributes += '" title="' + label + '" style="overflow: hidden;"';
|
||||||
|
@ -6048,9 +6048,9 @@ table.table_modal_alternate tr td:first-child {
|
|||||||
font-family: "lato" !important;
|
font-family: "lato" !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flot-text {
|
.flot-text .flot-x-axis div {
|
||||||
width: 100%;
|
white-space: normal;
|
||||||
font-family: inherit !important;
|
word-break: break-all;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*Font header feedback*/
|
/*Font header feedback*/
|
||||||
@ -6226,6 +6226,9 @@ div.graph td.legendLabel {
|
|||||||
div.graph div.legend div,
|
div.graph div.legend div,
|
||||||
div.graph div.legend table {
|
div.graph div.legend table {
|
||||||
top: 25px !important;
|
top: 25px !important;
|
||||||
|
display: block;
|
||||||
|
overflow: auto;
|
||||||
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rotate_text_module {
|
.rotate_text_module {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user