First of all, I praise you for taking good care of your daughter and taking her to the doctor! Also, please please have her see a counselor on a regular basis.
My 14 year old son has bipolar and adhd,, when he was 5 they put him on depakote and he gained A LOT of weight. After that happened, I heard from several parents that it happened to their child too. SO, be very careful about her weight and if she gains it.
And like another person said in a previous reply, with some children it takes some 'experimenting' with several medications before you get it just right. With my son, we ended up taking him off of ALL medications and he seems to be better without it! go figure.