I created a custom report. Some of the data in the list I have prepared is in the list as "NaN". I make the following solution so that they do not appear on the list;
grid2.js;
But this is still on the color list. I am adding this sample image.
This user coloring data is being prepared in flotr2.js file.
But I do not know how to hide it from the list "NaN" from the list here. Could you help me?
Thank you.
grid2.js;
Code:
if(value !== undefined) {
var $td = $('<td align="right" width="'+columnWidth+'%">').html(this.formatCellValue(value, this.column));
$td.css({'word-wrap': 'break-word'});
$tr.append($td);
$table.append($tr);
}
This user coloring data is being prepared in flotr2.js file.
Code:
fragments.push(
'<td class="flotr-legend-color-box">',
'<div style="border:1px solid ', legend.labelBoxBorderColor, ';padding:1px">',
'<div style="width:', (boxWidth-1), 'px;height:', (boxHeight-1), 'px;border:1px solid ', series[i].color, '">', // Border
'<div style="width:', boxWidth, 'px;height:', boxHeight, 'px;', color, '"></div>', // Background
'</div>',
'</div>',
'</td>',
'<td class="flotr-legend-labelflotr-legend-label">', label, '</td>'
);
Thank you.

Comment