Make legend detection in the dataSource more robust and correct some year drawing problems.