fidoandfido / blackswan

Blackswan Stock Game
Other
2 stars 0 forks source link

Graphs not rendering properly #24

Closed fidoandfido closed 13 years ago

fidoandfido commented 13 years ago

Graphs are not rendering properly.

The latest share prices over time are not being added to the graph. This results in a graph showing the current book value for the current time, along with current earning per share, but share prices are only shown to a point well before the current time. This is possibly a problem with the DAO retrieving the data that is being graphed.

fidoandfido commented 13 years ago

Problem is in the order DAO - since the order DAO is getting the orders, order by date, and now setting the order to be ascending (rather than descending) the query is returning the first 200 orders - not the last 200 orders.

This was a deliberate change to allow the graphing code to smooth out the line (by removing trades that occurred at the save time) - the DAO code will have to reverted and the graphing code will have to change to deal with it.

fidoandfido commented 13 years ago

Fixed - now rendering most recent data properly.