首页 > 解决方案 > 如何删除 PHPWord 图表中的标签?

问题描述

我在文档中找不到任何关于图表点没有数据标签的内容。提供的数据标签对于少量数据点非常好,但对于大量数据点,图表变得太忙,最终难以辨认。有谁知道一种方法,无需破解代码,在 PHPWord 图表上实现无数据标签?谢谢在此处输入图像描述

标签: phpphpword

解决方案


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,
    );

推荐阅读