Conditional loading of charts.