working on chart dynamic conditions