fixed a bug in value calculation for ticker graph