The only way that I see to do what you're wanting with Spreadsheet::WriteExcel is to import the chart from another source. That would be cumbersome, however, since it looks like import only pulls in the image, not the formula which creates the chart (ie, you'd have to export your data somewhere, create a chart, then import that chart -- ugh). Have you considered using Win32::OLE instead? It provides a very high level of control over Excel itself -- you can essentially do anything with it that you can do within the excel application itself.
Using Win32::OLE and excel, I actually do something quite similar. Using that module, you can define the chart in the excel spreadsheet and simply tell it to refresh once you've updated the data. I've placed the subroutine that implements the refresh on my scratch pad. You may also find RFC: Win32::OLE and Excel's RefreshAll worthwhile.
In reply to Re: Spreadsheet::WriteExcel, draw circles or a pie chart?
by jrsimmon
in thread Spreadsheet::WriteExcel, draw circles or a pie chart?
by sushi2k
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |