I would like to use graphael to draw a simple chart on a webpage (that has other html). Is there a way to conver开发者_如何学Pythont the chart to a .gif or .png image at the same time that it is drawn?
There are at least a few ways. The commercial product Prince ( http://www.princexml.com ) does this, as does the open source Inkscape ( http://inkscape.org/ ). In fact, there are a fair number of HTML/SVG->PDF converters on the market.
The Kendo UI DataViz library (a competitor to graphael) has some sample code in .NET for doing this server side with Inkscape: http://www.kendoui.com/code-library/dataviz/chart/kendo-ui-chart-export.aspx
精彩评论