php - 如何删除 PHPWord 图表中的标签?
问题描述
我在文档中找不到任何关于图表点没有数据标签的内容。提供的数据标签对于少量数据点非常好,但对于大量数据点,图表变得太忙,最终难以辨认。有谁知道一种方法,无需破解代码,在 PHPWord 图表上实现无数据标签?谢谢
解决方案
Thank you me for finding the answer and the answer is find the file Chart.php and change
showVal and showCatName to false
*/
private $dataLabelOptions = array(
'showVal' => false, // value
'showCatName' => false, // category name
'showLegendKey' => false, //show the cart legend
'showSerName' => false, // series name
'showPercent' => false,
'showLeaderLines' => false,
'showBubbleSize' => false,
);
推荐阅读
- css - 当 config.fullPage=true 时,CKEDITOR 无法从外部样式表(在 config.contentscss 中配置)应用样式
- java - 如何解决 java8 流映射中的特殊情况
- c# - MSBuild 正在用旧版本替换 Newtonsoft.Json.dll
- javascript - 获取从 foreach 循环显示到脚本代码的特定 id
- mysql - 为什么我的 Node.js 代码在 xampp 运行 mysql 时工作,但在 mysql 通知程序运行 mysql 服务器时不工作?
- node.js - 使用 node-usb this.open() , LIBUSB_ERROR_ACCESS
- sql - 调用 SQL 命令在 Power shell 核心 6.0.2 中不起作用
- cmake - 如何在 cmake 中编译具有不同 2 标志的源文件?
- java - 为什么函数必须需要返回两个布尔值才能避免错误?
- javascript - 使轮播无限或重复