duannaxin9975 2015-04-28 16:16
浏览 103

如何使用PHPExcel更新包含不同数据的图表?

I am using PHPExcel to read an Excel template and then write another excel file based on that model. In my model I have 2 sheets: the first one named "Data" contains sample Data. The 2nd sheet contains a graph using the data of the first sheet.

What I'm trying to do:

  • replace the data of the first sheet with the new data so that the Graph automatically change.

The problem is that when I generate my excel file based on the template, the graph does'nt always appear. And when it does, there is a popup saying that he had to repair the file (I think that's because the formula of my chart refers to the data that is being replaced. PHPExcel override the data so the chart can't load).

Is there another way to achieve this with PHPExcel?

Also, I already included

$objReader->setIncludeCharts(TRUE);

and

$objWriter->setIncludeCharts(TRUE);

If something isn't clear don't hesitate to ask, I don't want to put too much useless informations for you.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥100 set_link_state
    • ¥15 虚幻5 UE美术毛发渲染
    • ¥15 CVRP 图论 物流运输优化
    • ¥15 Tableau online 嵌入ppt失败
    • ¥100 支付宝网页转账系统不识别账号
    • ¥15 基于单片机的靶位控制系统
    • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
    • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
    • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
    • ¥15 手机接入宽带网线,如何释放宽带全部速度