Add new API to Line and Scatter
Modify examples