Charts: Added the parsedirection support #1519

also:
* Added a working example that use the option parsedirection; 
* Fixed wrong label offset for bar chart with one set of data;