Added a condition to small charts
This commit is contained in:
parent
e237198d06
commit
c506c9cce6
|
@ -256,7 +256,7 @@ function grafico_modulo_sparse_data_chart (&$chart, &$chart_data_extra, &$long_i
|
||||||
for ($i = 0; $i <= $resolution; $i++) {
|
for ($i = 0; $i <= $resolution; $i++) {
|
||||||
$timestamp = $datelimit + ($interval * $i);
|
$timestamp = $datelimit + ($interval * $i);
|
||||||
|
|
||||||
if ($fullscale) {
|
if ($fullscale && $resolution > 250) {
|
||||||
$timestamp = $data[$i]['utimestamp'];
|
$timestamp = $data[$i]['utimestamp'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue