Let me explain the visibility code. The left side of the first = sign is reference to the control and its Visible property which must be set to either True or False. The right side of the first = sign is an expression that will evaluate to either True or False. That structure won't work for setting the RowSource because it does not take a Boolean True or False value. RowSource is a query.
What I suggested is VBA, not SQL.
I am not sure which event is best. Try the Load event you have and replace the code.
In place of 'do this set the graph RowSource. The SQL statement must be within quote marks. The Case Else is not actually required.
Me.Graph0.RowSource = "SELECT animalquery.State AS Expr1, Count(*) AS [Count] FROM animalquery GROUP BY animalquery.State ORDER BY animalquery.State DESC;"