Refacture/show legend on stock chart