handle null as shape and titleShape in axis