better handling of labels in the trend chart