If data has been set using the setData method then returns the number of samples in the data. Otherwise throws an error.
the object from which to get the number of samples.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.