Refactor/fix graph disappearing

`getAllStockCount.length > 0`?