Add support for maxNoOfLabels in label tool

- Add support for maxNoOfLabels in label tool.

- Close edit mode of label on datapoint click.