You certainly can, by making use of PhantomJS - which is a WebKit-based command-line web browser. There's a full HOWTO document that details this here. You may want to employ this technique if you need an image of the chart for (for example) inclusion in a pdf file or other non-web document.