|I can't get your question really well.|
Did you mean you have a website that has a bar chart in it and you want an export button? Is your bar chart a rendered image? If yes, then you can Force Download the image.
Refer here: http://stackoverflow.com/questions/...
Hope this helps. :-)