CoreBOSBB

Full Version: [ solved ] Value with decimals in pipeline graph
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
My pipeline graph shows a value with decimal value
try this change and let me know if it makes a difference:

Code:
diff --git a/Smarty/templates/Home/HomeBlock.tpl b/Smarty/templates/Home/HomeBlock.tpl

index 94ec276b2..81c59e593 100644
--- a/Smarty/templates/Home/HomeBlock.tpl
+++ b/Smarty/templates/Home/HomeBlock.tpl
@@ -193,7 +193,8 @@ window.doChart{$HOME_STUFFID} = function(charttype) {ldelim}
        Chart.scaleService.updateScaleDefaults('linear', {
                ticks: {
                        min: 0,
-                       max: maxgrph
+                       max: maxgrph,
+                       precision: 0
                }
        });
        window.schart{/literal}{$HOME_STUFFID}{literal} = new Chart(stuffchart,{
try eliminating the

max: maxgrph

and also playing with the "5"

var maxgrph = Math.ceil(maxnum + (5 * maxnum / 100));

change it to 8 or 10 and see what works better
I don't know if i change right

code:
var maxgrph = Math.ceil(maxnum + (10 * maxnum / 100));
Chart.scaleService.updateScaleDefaults('linear', {
ticks: {
min: 0,
max: maxgrph,
precision: 0
}


and I remove a template_c
rm *Home*

but not changes a graph ...

or
};
var maxnum = Math.max.apply(Math, chartDataObject.datasets[0].data);
var maxgrph = Math.ceil(maxnum + (10 * maxnum / 100));
Chart.scaleService.updateScaleDefaults('linear', {
ticks: {
min: 0,
precision: 0
}
});



=(
those changes look correct
but not changes a graph ....
don't know
Better, image still with values overlapping ,,,
Works as above

};
var maxnum = Math.max.apply(Math, chartDataObject.datasets[0].data);
var maxgrph = Math.ceil(maxnum + (10 * maxnum / 100));
Chart.scaleService.updateScaleDefaults('linear', {
ticks: {
min: 0,
precision: 0
}
});
window.schart{/literal}{$HOME_STUFFID}{literal} = new Chart(stuffchart,{
type: charttype,
data: chartDataObject,
options: {
responsive: true,
legend: {
position: "right",
display: (charttype=='pie'),
labels: {
fontSize: 11,
boxWidth: 18
}
}
}
Pages: 1 2