init nchart using new function after dom has been loaded
Merge pull request #1209 from jay-hodgson/release-59

init nchart using new function after dom has been loaded