updated newcharts.js example to use new features