Example:
$config->addSparklineMetric('nb_users');
$config->filters[] = function ($dataTable) use ($config) {
if ($dataTable->getFirstRow()->getColumn('nb_users') == 0) {
do not show a sparkline if there are no recorded users
$config->removeSparklineMetric('nb_users');
}
}