Changes from customer added.
Count directly for every plot evry attrubute. Otherwise customer can not
work with app