output: Use macro HAVE_CHARTS instead of NO_CHARTS.