Updated project dependencies and fixed a chart sample because of the new API.