My pipeline graph shows a value with decimal value
Ranieri
eCRM Web
eCRM Web
[ solved ] Value with decimals in pipeline graph
|
My pipeline graph shows a value with decimal value
Ranieri
eCRM Web
08-28-2019, 09:21 PM
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
Joe
TSolucio
Solved
But a older error is returned ... https://discussions.corebos.org/showthread.php?tid=780&highlight=graph
Ranieri
eCRM Web
08-29-2019, 05:28 PM
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
Joe
TSolucio
08-30-2019, 04:22 PM
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 } }); =(
Ranieri
eCRM Web
09-01-2019, 01:24 PM
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 } } }
Ranieri
eCRM Web |
« Next Oldest | Next Newest »
|