Add scatter plot type
Fix NaN when undefined x for bar chart