如何删除 PHPWord 图表中的标签?

问题描述

我在文档中找不到任何规定图表点上没有数据标签内容。 提供的数据标签非常适合少量数据点,但大量数据点图表变得太忙,最终难以辨认。有谁知道一种无需破解代码方法,可以在 PHPWord 图表上实现无数据标签?谢谢

enter image description here

解决方法

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