'weights' should be an integer vector with size the same as the number of rows of 'data'.
'weights' should be a numeric vector with size the same as the number of rows of 'data'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.