Make graphs dynamic