added support for multiple plots, refactored the code to be more readable and to be ready for a reusable component
separated theme attributes, completed the sample