dongpo2002 2013-06-07 00:16
浏览 29

使用OpenTBS示例Scatter Excel Chart

Can anybody give me an example of how to create an Excel Scatter chart using OpenTBS/TinyButStrong? And are there any commercial/non-commercial PHP excel writers that support excel charts?

Will really appreciate your help.

Thank you for your time!

  • 写回答

1条回答 默认 最新

  • duangong1979 2013-06-07 20:57
    关注

    Create a basic XY chart using the wizard in Ms Word. Save the chart without changing it. Let the values and the design. Select the chart, and in the contextual menu, chose "Format of the zone" or something like this. In the "Alt Text" tab, in zone "Title", enter "a nice chart". Save the template.

    At the PHP side:

    $template = 'demo_ms_word.docx'; $TBS->LoadTemplate($template);
    
    $ChartNameOrNum = 'a nice chart'; // Title of the shape that embeds the chart
    $SeriesNameOrNum = 1;
    $NewValues = array( array( 1.5, 2.0, 3.2, 33), array(1.77, 2.88, 2.88, 2.99) );
    $NewLegend = "OpenTBS is so strong";
    $TBS->PlugIn(OPENTBS_CHART, $ChartNameOrNum, $SeriesNameOrNum, $NewValues, $NewLegend);
    
    $TBS->Show(OPENTBS_FILE+TBS_EXIT, 'result.docx');
    

    After it works, change the chart properties and the data.

    评论

报告相同问题?

悬赏问题

  • ¥15 远程桌面文档内容复制粘贴,格式会变化
  • ¥15 关于#java#的问题:找一份能快速看完mooc视频的代码
  • ¥15 这种微信登录授权 谁可以做啊
  • ¥15 请问我该如何添加自己的数据去运行蚁群算法代码
  • ¥20 用HslCommunication 连接欧姆龙 plc有时会连接失败。报异常为“未知错误”
  • ¥15 网络设备配置与管理这个该怎么弄
  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题