fix calculation of variance by score
refactoring AttributeDomain and subclasses based on changes in individual chart