PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, November 10, 2022

[FIXED] How to Remove the labels in PHPWord Charts?

 November 10, 2022     php, phpword     No comments   

Issue

I can't find anything in the documentation that provides for having no data labels on chart points. The data labels provided are very nice with small numbers of data points, but with larger numbers of data points charts become too busy, and eventually illegible. Does anyone know of a way, w/o hacking the code, to achieve no data labels on PHPWord charts? Thanksenter image description here


Solution

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


Answered By - ERi Musa
Answer Checked By - David Goodson (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing