Since you want to embed the chart on an external page, the documentation you found is not the right direction -- that's for creating new plugins or apps within Kibana, not external. Sorry about the confusion.
You can just navigate to the visualization you want to embed, add the filters, then click the Share button to get a URL to use for iframe code in your external page.
Create the visualization, apply the filters, then save the visualization
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.