Fix legend position when element appended - #334
Add sample for bar.zerobased