Made the graphcolor dynamically